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. https://www.linode.com/docs/guides/wordpress-with-docker-compose/ docker-compose down docker-compose pull && docker-compose up -d