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).