arrow_back Back to Notebook
docker
docker
January 10, 2019

How to refresh the build image using docker-compose

To refresh the build image, you need to add --build to the docker-compose command.

What does the build flag do

The --build flag tells docker to compile any Dockerfiles before starting running the compose

docker-compose up --build

Why you should use the flag

Not using the flag aka not refreshing the build image and then making changes is quite a common trap to fall into. This can when starting out with docker-compose!

Thanks for reading!

John Wiseman

Full-Stack Software Engineer building scalable digital solutions. specializing in modern web technologies and mission-critical systems.

© 2026 Wiseman Systems Pty. Ltd.

Navigation

Start a Conversation

Ready to discuss your next project? Let's build something extraordinary together.

Get in Touch