-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Closed
Description
Description
When using the --exit-code-from flag, an error message is output with the status code, giving the impression an error occurred even if the exit code was 0.
Steps to reproduce the issue:
- Use the following compose file
services: app: image: ubuntu command: sleep 1
- Start using
docker compose up --exit-code-from app
Describe the results you received:
docker compose up --exit-code-from app
[+] Running 1/0
⠿ Container compose-app-1 Recreated 0.0s
Attaching to compose-app-1
compose-app-1 exited with code 0
Aborting on container exit...
[+] Running 1/0
⠿ Container compose-app-1 Stopped 0.0s
ERRO[0001] 0
Describe the results you expected:
The same output minus the ERRO[0001] 0 message.
Additional information you deem important (e.g. issue happens only occasionally):
Output of docker compose version:
Docker Compose version v2.9.0
PR incoming (just making the issue first)
Metadata
Metadata
Assignees
Labels
No labels

Formed in 2009, the Archive Team (not to be confused with the archive.org Archive-It Team) is a rogue archivist collective dedicated to saving copies of rapidly dying or deleted websites for the sake of history and digital heritage. The group is 100% composed of volunteers and interested parties, and has expanded into a large amount of related projects for saving online and digital history.
