Question
How to force the image rebuild without using caches when the Docker Compose Run configuration is started?
Answer
Two conditions should be met:
- The
no_cache: trueattribute (see the official documentation here) set up for thebuildinstruction in the Docker Compose file:
services:
example:
build:
dockerfile: Dockerfile
no_cache: true
- The option to always build images on the
docker compose upcommand is enabled for the Run configuration:
Comments
0 comments
Please sign in to leave a comment.