The docker container is run with the user user. This cannot be changed and the UID and GID of the docker user cannot be specified. This leads to permission issues on mounted directories, to which the docker user doesn't have access. Of course, this could be solved by making the directories accessible to anyone and any group, but that's obviously not desired.
Imho I see two ways out of this. Either make the user root again, which makes it able to access any directory on the host fs, or implement some kind of environment variables to specify which UID & GID the docker user uses.
Description
The docker container is run with the user
user
. This cannot be changed and the UID and GID of the docker user cannot be specified. This leads to permission issues on mounted directories, to which the docker user doesn't have access. Of course, this could be solved by making the directories accessible to anyone and any group, but that's obviously not desired.Imho I see two ways out of this. Either make the user
root
again, which makes it able to access any directory on the host fs, or implement some kind of environment variables to specify which UID & GID the docker user uses.