mirror of
https://github.com/louislam/dockge.git
synced 2026-03-03 02:06:55 -05:00
Label shows "exited" if one container has exited but rest is running #1
Labels
No labels
bug
feature-request
help
help wanted
invalid-format
need-reproduce-steps
question
security
upstream
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/dockge-louislam#1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ToshY on GitHub (Nov 12, 2023).
Problem
If a stack has multiple containers, of which the one of the containers (purposely and knowingly) exits, the UI shows that the entire stack has exited.
Reproduction
Directory structure
./collection/dockge/compose.yaml./collection/dockge/.env./collection/kuma/compose.yaml./collection/kuma/.env$ docker compose logs -ftLooking at
stack.ts, I see it performs astatusConvertwhich checks if the status string starts withexited.So I ran the following command in the stacks directory to see the status of the
kumastack.$ docker compose ls --all --format json | jq '.[] | select(.Name == "kuma")'It has multiple statuses because one of the containers has exited, and the other one still running.
Possible solution
Maybe instead of
startsWithtry withincludes(?)@louislam commented on GitHub (Nov 12, 2023):
Thanks, I didn't know it contains multiple status.