From 920b1db4f0110449abebd94e314abedd3407503c Mon Sep 17 00:00:00 2001 From: Jan David Mol <mol@astron.nl> Date: Wed, 6 Oct 2021 20:14:00 +0200 Subject: [PATCH] Run docker device as the same user as in the other containers. This fixes issues if the CONTAINER_EXECUTION_UID cannot be resolved within the container --- docker-compose/device-docker.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-compose/device-docker.yml b/docker-compose/device-docker.yml index 6cf76c650..5386ead92 100644 --- a/docker-compose/device-docker.yml +++ b/docker-compose/device-docker.yml @@ -29,7 +29,7 @@ services: volumes: - ..:/opt/lofar/tango:rw - /var/run/docker.sock:/var/run/docker.sock:rw # we want to control our sibling containers, NOT do docker-in-docker (dind) - user: ${CONTAINER_EXECUTION_UID}:${DOCKER_GID} # user that starts this container by definition has access rights to docker + user: 1000:${DOCKER_GID} # uid 1000 is the default "tango" user environment: - TANGO_HOST=${TANGO_HOST} entrypoint: -- GitLab