Run Docker container with host user and group

This commit is contained in:
bandesz
2017-01-11 14:02:10 +00:00
parent 88b848a4a3
commit 7eab0f411f
5 changed files with 70 additions and 6 deletions

View File

@@ -19,5 +19,15 @@ build:
.PHONY: bash
bash:
docker run -it --rm \
govuk/notify-admin-builder \
-e UID=$(shell id -u) \
-e GID=$(shell id -g) \
govuk/notify-admin-builder:${DOCKER_IMAGE_TAG} \
bash
.PHONY: bash
bash-hostuser:
docker run -it --rm \
-e UID=$(shell id -u) \
-e GID=$(shell id -g) \
govuk/notify-admin-builder:${DOCKER_IMAGE_TAG} \
gosu hostuser bash