Best way to force Docker to rebuild Docker Compose images

Sorry, it is again about Docker 🙂 I use it more and more last days.

At some point we need to rebuild images from scratch without using cache. You can use following commands to achieve best results:

docker system prune
docker-compose build --no-cache

Then you can use up command as usual:

docker-compose up

Leave a Reply