Detach pending during container health check
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 38.2k
- Forks
- 5.8k
- Avg merge
- 2d 14h
- Merged PRs (30d)
- 55
Description
Description
Hey there
I recently noticed a small but annoying issue. When I run docker compose up and it gets to the health check, if I try to detach, docker compose doesn't give me control and waits for the health check to finish. I thought it would be cool to try fixing this. What do you think?
OS: Arch Linux | x86_64
➜ ~ docker compose version
Docker Compose version 5.1.1
➜ ~ docker -v
Docker version 29.3.1, build c2be9ccfc3
discussion thread: https://forums.docker.com/t/detach-pending-during-container-health-check/151456
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the behavior with docker compose up while a container health check is pending, then trace the Compose CLI handling for detach input. Confirm the expected behavior against the linked forum discussion. Done means detaching returns control without waiting for the health check to finish.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker-compose, go
- Domain
- cli, devops
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100