Try this
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).
More Related Contents:
- Using the RUN instruction in a Dockerfile with ‘source’ does not work
- How to pass arguments to Shell Script through docker run
- Docker: How to use bash with an Alpine based docker image?
- docker entrypoint running bash script gets “permission denied”
- Expansion of variables inside single quotes in a command in Bash
- How to add a progress bar to a shell script?
- sudo echo “something” >> /etc/privilegedFile doesn’t work [duplicate]
- Convert absolute path into relative path given a current directory using Bash
- While-loop subshell dilemma in Bash
- How do I escape the wildcard/asterisk character in bash?
- Check existence of input argument in a Bash shell script
- How do I grab an INI value within a shell script?
- How to create a cron job using Bash automatically without the interactive editor?
- Convert date time string to epoch in Bash
- How do I put an already-running process under nohup?
- How to obtain the absolute path of a file via Shell (BASH/ZSH/SH)?
- Running multiple commands in one line in shell
- printf in bash: “09” and “08” are invalid numbers, “07” and “06” are fine
- String comparison in bash. [[: not found
- How do I pause my shell script for a second before continuing?
- How do you echo a 4-digit Unicode character in Bash?
- How to find whether or not a variable is empty in Bash
- How to get the list of files in a directory in a shell script?
- Bash regex =~ operator
- VSCode Integrated Terminal Doesn’t Load .bashrc or .bash_profile
- Returning a boolean from a Bash function
- Ignoring specific errors in a shell script
- Is there a way to avoid positional arguments in bash?
- How to wait on all child (and grandchild etc) process spawned by a script
- Do I need to quote command substitutions?