Skip to content
Snippets Groups Projects
Commit 920b1db4 authored by Jan David Mol's avatar Jan David Mol
Browse files

Run docker device as the same user as in the other containers. This fixes...

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
parent 1e919221
No related branches found
No related tags found
No related merge requests found
...@@ -29,7 +29,7 @@ services: ...@@ -29,7 +29,7 @@ services:
volumes: volumes:
- ..:/opt/lofar/tango:rw - ..:/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) - /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: environment:
- TANGO_HOST=${TANGO_HOST} - TANGO_HOST=${TANGO_HOST}
entrypoint: entrypoint:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment