Run as specific user in docker #967
Unanswered
PierreRust
asked this question in
Q&A
Replies: 1 comment 1 reply
-
A PR would be great. It should not modify the default behavior. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I'm playing with myMPD and it's a great mpd web client , the best I've seen so far, thanks for your work !
I'm running it as part of a docker compose stack, where all containers are run as a specific user (to make conf file management & backup easier).
When running myMPD, it automatically switches to the myMPD user, which is created in the Dockerfile. However, that user uid and guid does not match the user I'm using everywhere else, which causes issues.
I've seen that the use of xUID, which is the standard way of dealing with that in docker to run as non-root inside the container, was mentioned in the documentation at some point, and them removed. On the other hand, from what I see in the dockerfile history, these env. variables were never actually used.
Am I missing something of is there any reason for that situation ?
I'd love to be able to set the user and group id to be used inside the container. This would only require to change the dockerfile (and the documentation accordingly), I can contribute a PR for that if you want.
Beta Was this translation helpful? Give feedback.
All reactions