mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-04-26 01:35:54 +03:00
[GH-ISSUE #287] [Docker] Unable to connect to database when using non-root user #154
Labels
No labels
SSO
Third party
better for forum
bug
bug
documentation
duplicate
enhancement
future Vault
future Vault
future Vault
good first issue
help wanted
low priority
notes
pull-request
question
troubleshooting
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/vaultwarden#154
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
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).
Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/287
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.