How to force recreate containers with Docker Compose?

You can easily perform this by running the following command:

docker-compose up --force-recreate --build

Please make sure that you are in the same directory as your compose yaml file.

Leave a Reply

Your email address will not be published. Required fields are marked *