Docker Compose Watch: live updates while you code
Select an icon to see what it is.
Step 5 of 6
rebuild: new image, new container
A change to the Dockerfile, or to something the image bakes in, needs a new image. With rebuild, Compose runs the build again, using the cache for unchanged steps. Then it replaces the container with a new one made from the new image, and removes the old image by default.
Build, like docker compose up --build web
BuildKit reuses cached layers for unchanged steps