Running in Docker as non-root user #4893
rickyelopez
started this conversation in
Show and tell
Replies: 1 comment
-
If you run a recent docker version, you can run on any port even as a non-root user. So that should be fine. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Just an FYI in case anybody else is looking for how to run Vaultwarden in docker/docker-compose as a user other than root.
The only thing preventing this container from running as non-root out-of-the-box is that Rocket is running on port 80 inside the container, which is a priviledged port. I was able to easily modify this behavior by setting the
ROCKET_PORT
environment variable to a port greater than1024
(I chose 8080).In docker-compose:
Maybe this should be exposed as a vaultwarden environment variable instead of having to muck around with Rocket? Either way, seems like this might be worth adding to the documentation.
Loving this project, it's been working wonderfully for me!
Beta Was this translation helpful? Give feedback.
All reactions