How do I run NPM as non-root? #2172
Unanswered
UntouchedWagons
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello there,
I run all my docker containers as non-root, specifically as my user, partially so that if need be I can easily fix configs and to make backups easier. I want to possibly replace SWAG with NPM because dealing with nginx config files is a pain in the caboose but I can't find any info on running NPM as non root.
I've tried PUID and PGID environment variables but I think that's more of a LSIO thing, I also tried
user: "1000:1000"
which I use with my Vaultwarden container but this didn't work either I'd get the messages6-mkdir: warning: unable to mkdir /var/run/s6: Permission denied
. I suppose this later method is working but I suspect /var/run/s6 is owned by root.Can I get NPM to run entirely as non-root or will I have to resort to docker volumes?
Beta Was this translation helpful? Give feedback.
All reactions