mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-03-02 22:57:18 -05:00
Problem on docker run #247
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
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#247
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 @MarkOnDuty on GitHub (Mar 5, 2019).
My suspicion is the problem is with Docker or LXC/LXD, but I'll start here.
I'm trying to get a bitwarden_rs server up and running. Created a new LXD container, hopped into it, and did the following:
No issues with all but the last command. Here's the result of the run:
Any ideas? Or should I move up the chain and ask the Docker or LXC/LXD people?
@dani-garcia commented on GitHub (Mar 5, 2019):
It mentions a permission issue, so I can think of two possible causes:
/bw-datafolder.I'd try changing the command to
-p 8080:80and creating the/bw-datafolder manually, to see if that helps.@mprasil commented on GitHub (Mar 5, 2019):
I believe this is Docker in LXC/LXD issue. You can rule out
bitwarden_rsbeing the problematic part by runningalpinefor example:docker run -ti --rm alpineand seeing if that works fine. (ctrl+dto exit the container if it runs fine)If LCX configuration is really the problem, I have somewhat similar setup and the LXC container needs to be started with some extra privileges to be able to run containers inside. The way I do that is I create a LXC profile with following config:
I think you might be able to set it a bit more strict, but this is what worked for me. Then you just assign that profile to your new LXC container and you should be able to run containers inside.
@MarkOnDuty commented on GitHub (Mar 5, 2019):
That got 'em. Thanks.
Of course, that profile sets the network up a little differently than I need, but that's my problem to solve.
@MarkOnDuty commented on GitHub (Mar 5, 2019):
Modified the profile to have a bridged eth0 device and I can now access the web interface from elsewhere:
I can probably remove some of the kernel modules too.
@mprasil commented on GitHub (Mar 6, 2019):
Ah sorry, I forgot to mention that you might need to move some of the settings to different profile or merge them. (like you did)
I'm actually using multiple profiles. This one holds docker specific settings, I had another one that sets the bridge similar to your setup.
@MarkOnDuty commented on GitHub (Mar 6, 2019):
No worries. You nudged me in the right direction. It only took a couple of minutes from that point. You have my gratitude. For that matter, the fact that I've now got this (mostly) running has me thinking about donating to the project (as well as upstream). Assuming that we end up using this more broadly, I've got some budget to allocate in that direction.
Seriously, any options for keeping this project (and upstream) healthy are worth sharing. (And I've read the wiki page on supporting upstream. It's great to see some effort towards that.)
@mprasil commented on GitHub (Mar 6, 2019):
Glad you got it working. We have a wiki page with info if you want to support upstream.