[GH-ISSUE #686] Issue with mounting directories as a data volume #464

Closed
opened 2026-03-03 01:29:24 +03:00 by kerem · 5 comments
Owner

Originally created by @deeztek on GitHub (Oct 27, 2019).
Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/686

I realize this is probably an odd issue, I'm wanting to deploy bitwardenrs on Vsphere Integrated Containers. One of the limitations with VIC that I'm running into is the fact that you are not able to mount directories as a data volume. So, including the -v option for persistent storage in the command below fails:

docker run -d --name bitwarden -v /bw-data/:/data/ -p 80:80 bitwardenrs/server:latest

If I don't use the -v option, the container gets created successfully, but I'm assuming that I don't have persistent storage at at that point. One of the workarounds is to create a volume before-hand and then use that in the container. So, I created a bw-data volume, but I'm not really clear on how to integrate that into bitwardenrs.

I would appreciate some help on this.

Thanks a lot!

Originally created by @deeztek on GitHub (Oct 27, 2019). Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/686 I realize this is probably an odd issue, I'm wanting to deploy bitwardenrs on Vsphere Integrated Containers. One of the limitations with VIC that I'm running into is the fact that you are not able to mount directories as a data volume. So, including the -v option for persistent storage in the command below fails: docker run -d --name bitwarden -v /bw-data/:/data/ -p 80:80 bitwardenrs/server:latest If I don't use the -v option, the container gets created successfully, but I'm assuming that I don't have persistent storage at at that point. One of the workarounds is to create a volume before-hand and then use that in the container. So, I created a bw-data volume, but I'm not really clear on how to integrate that into bitwardenrs. I would appreciate some help on this. Thanks a lot!
kerem closed this issue 2026-03-03 01:29:25 +03:00
Author
Owner

@dani-garcia commented on GitHub (Oct 27, 2019):

Can you try to remove the slashes from the left side of the : in the -v parameter?

Like this:

docker run -d --name bitwarden -v bw-data:/data -p 80:80 bitwardenrs/server:latest

I think Docker would interpret that as a volume name instead of a directory name.

<!-- gh-comment-id:546692770 --> @dani-garcia commented on GitHub (Oct 27, 2019): Can you try to remove the slashes from the left side of the `:` in the `-v` parameter? Like this: ``` docker run -d --name bitwarden -v bw-data:/data -p 80:80 bitwardenrs/server:latest ``` I think Docker would interpret that as a volume name instead of a directory name.
Author
Owner

@deeztek commented on GitHub (Oct 27, 2019):

Thanks for the suggestion. It seems to have worked, docker created the container successfully. The /data is a NFS share. So, I'm assuming the bw-data is now mapped to /data NFS share. What type of data/files should I be able to find there?

<!-- gh-comment-id:546696072 --> @deeztek commented on GitHub (Oct 27, 2019): Thanks for the suggestion. It seems to have worked, docker created the container successfully. The /data is a NFS share. So, I'm assuming the bw-data is now mapped to /data NFS share. What type of data/files should I be able to find there?
Author
Owner

@dani-garcia commented on GitHub (Oct 27, 2019):

Well the /data path is where the bw-data gets mounted inside the volume, not where it's mapped externally, I'm not sure how to access the data inside a docker volume directly.

About the structure, the important files are the db.sqlite3* files from the database, one attachments folder if you use them, and the config.json file if you use the admin page.

<!-- gh-comment-id:546696502 --> @dani-garcia commented on GitHub (Oct 27, 2019): Well the /data path is where the bw-data gets mounted inside the volume, not where it's mapped externally, I'm not sure how to access the data inside a docker volume directly. About the structure, the important files are the db.sqlite3* files from the database, one attachments folder if you use them, and the config.json file if you use the admin page.
Author
Owner

@mprasil commented on GitHub (Nov 5, 2019):

@deeztek did that answer your question?

<!-- gh-comment-id:549739970 --> @mprasil commented on GitHub (Nov 5, 2019): @deeztek did that answer your question?
Author
Owner

@deeztek commented on GitHub (Nov 5, 2019):

@mprasil yes. I was able to get everything working. Thanks a lot for the help!

<!-- gh-comment-id:549989529 --> @deeztek commented on GitHub (Nov 5, 2019): @mprasil yes. I was able to get everything working. Thanks a lot for the help!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/vaultwarden#464
No description provided.