How to update Vaultwarden installed via docker

Due to auto-update of Google play, my bitwarden app was upgraded to the latest version, which is not compatible with my Vaultwarden server. So I have to update Vaultwarden server, which was installed via docker before. Actually though the UI of bitwarden client became more beautiful, the auto-fill function is less powerful than old version client.

How to update

Log into your server as root.

1
2
3
4
5
6
7
8
9
# Pull the latest version
docker pull vaultwarden/server:latest

# Stop and remove the old container
docker stop vaultwarden
docker rm vaultwarden

# Start new container with the data mounted
docker run -d --name vaultwarden -v /vw-data/:/data/ --restart unless-stopped -p 3000:80 -e DOMAIN=https://vaultwarden.your.domain -e SIGNUPS_ALLOWED=false -e SMTP_HOST=smtp.example.com -e SMTP_FROM=your_email@your.domain -e SMTP_PORT=465 -e SMTP_SECURITY=starttls -e SMTP_USERNAME=your_email@your.domain -e SMTP_PASSWORD="your_password" vaultwarden/server:latest

Reference

  1. https://github.com/dani-garcia/vaultwarden/wiki/Updating-the-vaultwarden-image