You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 27, 2023. It is now read-only.
docker compose up --build -d forces rebuild of images if composefile includes build section for images.
However, if the containers are already started, this command does not restart the container. It will only restart the container if I add the --force-recreate option, where docker-compose will restart containers after rebuilding images.
Steps to reproduce the issue:
docker compose up -d a project
Update content
docker compose up --build -d to update and deploy changes
See that updates are not deployed
docker compose up --build -d --force-recreate to see updates deployed
Describe the results you expected:
No need to add the force-recreate option to restart container