Skip to content
This repository was archived by the owner on Nov 27, 2023. It is now read-only.
This repository was archived by the owner on Nov 27, 2023. It is now read-only.

docker compose up --build forces build but does not restart container  #1457

@gtardif

Description

@gtardif

Description

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:

  1. docker compose up -d a project
  2. Update content
  3. docker compose up --build -d to update and deploy changes
  4. See that updates are not deployed
  5. 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

Metadata

Metadata

Assignees

Labels

bug 🐞App is not working correctly.compatibilityCompatibility with docker-compose

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions