mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-07-18 01:49:32 -05:00
[Docker] Unable to connect to database when using non-root user #155
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @JuniorJPDJ on GitHub (Dec 13, 2018).
I wanted to use non-root user and container didn't start.
@dani-garcia commented on GitHub (Dec 17, 2018):
I'm not very knowledgeable in docker, but I imagine this is because the non-root user doesn't have permission in the data folder.
@bassarf commented on GitHub (Jan 16, 2019):
As far as I know, and as far as my 2 minute google research goes, this is a docker thing.
The docker deamon runs as root. But on the docker website there is a manual for non-root users to manage docker: https://docs.docker.com/install/linux/linux-postinstall/
IMO this issue should be closed because it is not specific to bitwarden_rs but rather being a docker thing
@JuniorJPDJ commented on GitHub (Jan 16, 2019):
@bassarf that issue is not about starting container as non-root user, it's about dropping privileges of bitwarden_rs running in docker container to other (non-root) user.
Still, thank you for your interest, my description was misleading.
@Sohalt commented on GitHub (Feb 3, 2019):
You will have to set the correct permissions on the
/datavolume. In addition you need to adjust theROCKET_PORTto something above 1024, as everything below is a privileged port and can only be opened by root.@mprasil commented on GitHub (Feb 24, 2019):
I've documented the procedure in wiki page, so I believe this is resolved. I ran the container as
nobodyfollowing the wiki, but feel free to re-open or open new issue if you encounter any problems.