After Docker restart the database is Gone. #310

Closed
opened 2026-02-04 19:28:12 +03:00 by OVERLORD · 3 comments
Owner

Originally created by @SpinB on GitHub (Jun 2, 2019).

Hello,

I'm running Bitwarden_rs in a windows server with IIS as a reverse proxy, everything works fine but every time i restart docker, puff the database is gone, the first time i run it i used the following commands like described in the wiki:

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

and every time i start bitwarden i use this command since run doens't work on a container that already have run

docker start bitwarden

Do i need to add any additional commands to avoid this behavior, also how do i force the container to always restart with docker?

Originally created by @SpinB on GitHub (Jun 2, 2019). Hello, I'm running Bitwarden_rs in a windows server with IIS as a reverse proxy, everything works fine but every time i restart docker, puff the database is gone, the first time i run it i used the following commands like described in the wiki: docker run -d --name bitwarden -e ADMIN_TOKEN=<same token> -v /bw-data/:/data/ -p 911:80 bitwardenrs/server:latest and every time i start bitwarden i use this command since run doens't work on a container that already have run docker start bitwarden Do i need to add any additional commands to avoid this behavior, also how do i force the container to always restart with docker?
OVERLORD added the question label 2026-02-04 19:28:12 +03:00
Author
Owner

@shauder commented on GitHub (Jun 2, 2019):

My guess would be that if you are on Windows then you may need to adjust the path for a proper Windows directory.

https://rominirani.com/docker-on-windows-mounting-host-directories-d96f3f056a2c

@shauder commented on GitHub (Jun 2, 2019): My guess would be that if you are on Windows then you may need to adjust the path for a proper Windows directory. https://rominirani.com/docker-on-windows-mounting-host-directories-d96f3f056a2c
Author
Owner

@SpinB commented on GitHub (Jun 3, 2019):

Thanks, Flawless.

@SpinB commented on GitHub (Jun 3, 2019): Thanks, Flawless.
Author
Owner

@mprasil commented on GitHub (Jun 3, 2019):

I suppose this is resolved now.

@mprasil commented on GitHub (Jun 3, 2019): I suppose this is resolved now.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/vaultwarden#310