Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

docker compose linux +group_add uid sid

In your docker-composer.yml

user: $DOCKER_USER
In the command line

echo 'export DOCKER_USER="$(id -u):$(id -g)"' >> ~/.bash_profile

source ~/.bash_profile

docker-compose up
Created a DOCKER_USER variable and added it in the bash_profile for persistency. The source will help the shell to recognize changes of .bash_profile on demand
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #docker #compose #linux #uid #sid
ADD COMMENT
Topic
Name
9+3 =