Docker and CI/CD · Junior · Question 75 of 75
What does docker compose up --build add to up?
- 1Builds a new Compose file from the running containers
- ✓Correct answer: Rebuilds service images before starting the containers
- 3Builds a production bundle of the app inside each service
Explanation
Without it, Compose reuses an existing image even if the Dockerfile or code changed, a common reason for "my change doesn't show up".