-
Notifications
You must be signed in to change notification settings - Fork 18.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docker stop command hangs after daemon reload and restart - docker 17.03 #31997
Comments
Thanks, looks stuck here: https://github.com/docker/docker/blob/v17.03.0-ce/daemon/monitor.go#L42
@mlaventure It looks like there's some case where the container I/O streams are not closed. I think blocked on this select:
|
Issue can be observed only if --live-restore is set to docker daemon. |
@kopnok sorry for the long delay. Could you provide with the associated daemon log (if you still have them)? If you can reproduce it and put the daemon into debug mode, it'd be a plus too. Do you have an idea of what output the containers are generating? Next times it occurs, can you also send a |
Please find attached file with requested logs. |
@tonistiigi it looks to me like during the restore some of the fifo got stuck on |
The same problem
strace docker stop 2048
|
@pangzheng if you could provide the same information I requested earlier (i.e. daemon log, daemon and container stacktraces), it would be useful |
@mlaventure @cpuguy83 any progress on this? The process to reproduce this issue:
|
@mlaventure
|
@elianka I vaguely remember this causing an issue, but I think we fixed it in a later patch release. Try updating to 17.03.2 (despite the name change, this is really just 1.13.4) |
@mlaventure |
Hi @elianka, I think I got the same issue, is there any updates? |
Same issue for me, i've updated my daemon from 1.06 to the last one, and all my docker command are stuck. Any ideas? |
I have the same issue.
|
Docker >= 17.12 is totally different with the introduction of containerd 1.0. Debugging against an older, non-supported version of Docker is difficult and can't really be fixed here. That said, we do have timeouts on fifo open to fix a deadlock that was primarily caused by having lots of healthchecks after updating to containerd 1.0. |
i encounter the same issue, and find the root cause is the stderr&stdout redirects.
#cat entrypoint.sh
#! /bin/sh
exec /test &> /tmp/log
the dockerd hangs at if i remove the stdout&stderr redirects, everything is alright. #! /bin/sh
exec /test |
Is there any updates about this issue? |
I don't see any recent activity on this issue. I will close it as stale. |
Description
Command docker stop hangs. Container is not stopped.
Check also docker ps and hangs as well.
Steps to reproduce the issue:
Describe the results you received:
No results are given from the command - it hangs.
Describe the results you expected:
Container is stopped and the command is successfully finished.
Output of
docker version
:Output of
docker info
:daemon-data-2017-03-22T071457Z.txt
goroutine-stacks-2017-03-22T071457Z.txt
strace-docker-stop.txt
The text was updated successfully, but these errors were encountered: