Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

docker compose linux +group_add uid sid

So, you need to put:

user: "${UID}:${GID}"
in your docker compose and provide UID and GID as docker-compose parameter

UID=${UID} GID=${GID} docker-compose up
(or define UID and GID as environment variables).
Comment

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
Comment

PREVIOUS NEXT
Code Example
Shell :: script inside script bash 
Shell :: sublime select all matches 
Shell :: fix git not showning persian letters 
Shell :: change directory in linux 
Shell :: install fabric sample 
Shell :: png to jpg linux command line 
Shell :: dockerfile run app cmd 
Shell :: git show hidden commits 
Shell :: download ubutu themes 
Shell :: All changed files github 
Shell :: show git branch on terminal 
Shell :: Install docker on linux (Ubuntu) 
Shell :: [ERROR] An error occurred while running subprocess capacitor. 
Shell :: chown ubuntu 
Shell :: find next greater number with same digits 
Shell :: Errors were encountered while processing: ubuntu 
Shell :: how to use git in powershell 
Shell :: unity install c# package 
Shell :: xubuntu desktop 
Shell :: keep command running after closing ssh 
Shell :: annullare i cambiamenti git 
Shell :: list directory xargs linux 
Shell :: pass vairalbe into string dockerfile 
Php :: print last query laravel 
Php :: php pretty print 
Php :: sail alias 
Php :: composer laravel ui 
Php :: get featured image url 
Php :: php store object in session 
Php :: hasany cakephp 
ADD CONTENT
Topic
Content
Source link
Name
5+5 =