Build with docker-compose build --no-cache Without Using Cache
To build with docker-compose build without using cache, you can achieve this by adding the —no-cache option.
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.
That’s all from the Gemba.