How to Upgrade containers with docker-compose?

Another question is how to upgrade to the latest version of nginx or wordpress docker images in our deployment. Since all user data is outside the containers, we can easily delete the containers and re-create them to upgrade our installation.

docker-compose down --rmi all
docker-compose up -d

https://www.linode.com/docs/guides/wordpress-with-docker-compose/

docker-compose down
docker-compose pull && docker-compose up -d

Join the Conversation

1 Comment

Leave a comment