Build with docker-compose build --no-cache Without Using Cache

Tadashi Shigeoka ·  Tue, July 18, 2017

To build with docker-compose build without using cache, you can achieve this by adding the —no-cache option.

Docker

When you update your Dockerfile during development, it’s safe to run:

docker-compose build --no-cache

I personally often get stuck because configuration changes aren’t reflected even after running docker-compose build due to cache being enabled, so please always keep —no-cache in the back of your mind.

Reference Information

That’s all from the Gemba.