Updating docker version

Hi. I’m using docker-compose version of Nextcloud with the named volume:
- nextcloud:/var/www/html

Am I right that trying to update the image with “docker-compose pull” will not update my Nextcloud as it picks /var/www/html folder from my host disk using that volume?
What is the correct way to update in such case?
Or I’m missing something?

no. you are wrong.

the entrypoint.sh of the image will check if your version in /var/www/html is lower then the version in the image and will perform an update on first startup.

docker stop, docker rm, docker-compose up

or have a look at

1 Like