3 ms·
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-con
by oldsj 5y 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 https://hub.docker.com/r/linuxserver/unifi-controller
- encryptluks2 5y agoIt 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.
- jaimehrubiks 5y agoThe author needs to add this and then try if everything works as expected (like npm and pip and so on)