Renamed values according to the README
parent
e40362af1c
commit
4408d3090f
|
@ -5,11 +5,11 @@ Updating is straightforward, you just make sure to preserve the mounted volume.
|
|||
docker pull vaultwarden/server:latest
|
||||
|
||||
# Stop and remove the old container
|
||||
docker stop bitwarden
|
||||
docker rm bitwarden
|
||||
docker stop vaultwarden
|
||||
docker rm vaultwarden
|
||||
|
||||
# Start new container with the data mounted
|
||||
docker run -d --name bitwarden -v /bw-data/:/data/ -p 80:80 vaultwarden/server:latest
|
||||
docker run -d --name vaultwarden -v /vw-data/:/data/ -p 80:80 vaultwarden/server:latest
|
||||
```
|
||||
Then visit [http://localhost:80](http://localhost:80)
|
||||
|
||||
|
@ -20,17 +20,17 @@ In case you didn't bind mount the volume for persistent data, you need an interm
|
|||
docker pull vaultwarden/server:latest
|
||||
|
||||
# Create intermediate container to preserve data
|
||||
docker run --volumes-from bitwarden --name bitwarden_data busybox true
|
||||
docker run --volumes-from vaultwarden --name vaultwarden_data busybox true
|
||||
|
||||
# Stop and remove the old container
|
||||
docker stop bitwarden
|
||||
docker rm bitwarden
|
||||
docker stop vaultwarden
|
||||
docker rm vaultwarden
|
||||
|
||||
# Start new container with the data mounted
|
||||
docker run -d --volumes-from bitwarden_data --name bitwarden -p 80:80 vaultwarden/server:latest
|
||||
docker run -d --volumes-from vaultwarden_data --name vaultwarden -p 80:80 vaultwarden/server:latest
|
||||
|
||||
# Optionally remove the intermediate container
|
||||
docker rm bitwarden_data
|
||||
docker rm vaultwarden_data
|
||||
|
||||
# Alternatively you can keep data container around for future updates in which case you can skip last step.
|
||||
```
|
||||
|
@ -48,7 +48,7 @@ docker-compose start
|
|||
## Updating when using systemd service (in this case Debian/Raspbian)
|
||||
|
||||
```sh
|
||||
sudo systemctl restart bitwarden.service
|
||||
sudo systemctl restart vaultwarden.service
|
||||
sudo docker system prune -f
|
||||
#WARNING this could delete stopped or unused containers, etc. not associated with vaultwarden
|
||||
#be carefull and look which containers you need
|
||||
|
@ -72,7 +72,7 @@ The prune command will remove the now old container (-f stands for: Do not ask f
|
|||
Put these into cronjob if you want (time can be changed):
|
||||
```
|
||||
$ sudo crontab -e
|
||||
0 2 * * * sudo systemctl restart bitwarden.service
|
||||
0 2 * * * sudo systemctl restart vaultwarden.service
|
||||
|
||||
0 3 * * * sudo /usr/bin/docker system prune -f
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue