I’m using docker-compose stop, pull, start to update my vaultwarden image.
Docker images shows 3 different image ID’s for the server but docker ps shows the running server using the oldest image id.
The console outputs are:
[dave@centos8 vaultwarden]$ sudo docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
vaultwarden/server latest 540f93627ad4 7 weeks ago 185MB
vaultwarden/server <none> 99bc39992761 4 months ago 182MB
bitwardenrs/server latest 906c4a051e9d 4 months ago 182MB
nextcloud latest 226698e20b65 6 months ago 868MB
mariadb latest 2a2c18b8e036 7 months ago 405MB
vaultwarden/server <none> ca7d174aef76 7 months ago 179MB
hello-world latest bf756fb1ae65 23 months ago 13.3kB
docker/compose 1.24.1 9bd979cced2e 2 years ago 67.9MB
[dave@centos8 vaultwarden]$ sudo docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
c5aeb59b2e97 nextcloud "/entrypoint.sh apac…" 6 months ago Up 5 weeks 0.0.0.0:8080->80/tcp nextcloud_app_1
73b74bc044b2 mariadb "docker-entrypoint.s…" 6 months ago Up 5 weeks 3306/tcp nextcloud_db_1
242eec60bc03 ca7d174aef76 "/usr/bin/dumb-init …" 6 months ago Up 37 minutes (healthy) 3012/tcp, 0.0.0.0:8000->80/tcp vaultwarden_vaultwarden_1
It seems that the new version is being downloaded but the original version is the one that is restarted. Or am I not understanding the upgrade process?