Y
Hacker News
new
|
ask
|
show
|
jobs
by
oldsj
1564 days ago
You can pass in the current user’s uid/gid as an environment variable check out linuxserver images for an example
https://hub.docker.com/r/linuxserver/unifi-controller
1 comments
encryptluks2
1564 days ago
It is usually better to use --user $(id -u):$(id -g) to do this. You don't really need to pass it as a variable for the most part.
link
jaimehrubiks
1564 days ago
The author needs to add this and then try if everything works as expected (like npm and pip and so on)
link