Interview Prep/Docker/Docker Compose

How does Compose handle build configuration?

IntermediateConceptDocker Compose
Answer

build: accepts a context path or a map with dockerfile, target, args, cache_from, cache_to, platforms, secrets, ssh. With both build and image, the built image is tagged with the image name. docker compose build --no-cache and up --build rebuild.

All Docker questions Roadmap: Docker & containers

More on Docker Compose