moby: docker stop command hangs after daemon reload and restart - docker 17.03
Description Command docker stop hangs. Container is not stopped. Check also docker ps and hangs as well.
Steps to reproduce the issue:
- sudo systemctl reload docker
- sudo systemctl reload-or-restart docker
- sudo systemctl restart docker
- docker stop container
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
:
Docker version 17.03.0-ce, build 60ccb22
Output of docker info
:
Containers: 19
Running: 18
Paused: 0
Stopped: 1
Images: 18
Server Version: 17.03.0-ce
Storage Driver: devicemapper
Pool Name: docker-253:0-134295373-pool
Pool Blocksize: 65.54 kB
Base Device Size: 10.74 GB
Backing Filesystem: xfs
Data file: /dev/loop0
Metadata file: /dev/loop1
Data Space Used: 4.546 GB
Data Space Total: 107.4 GB
Data Space Available: 26.09 GB
Metadata Space Used: 11.89 MB
Metadata Space Total: 2.147 GB
Metadata Space Available: 2.136 GB
Thin Pool Minimum Free Space: 10.74 GB
Udev Sync Supported: true
Deferred Removal Enabled: false
Deferred Deletion Enabled: false
Deferred Deleted Device Count: 0
Data loop file: /var/lib/docker/devicemapper/devicemapper/data
WARNING: Usage of loopback devices is strongly discouraged for production use. Use `--storage-opt dm.thinpooldev` to specify a custom block storage device.
Metadata loop file: /var/lib/docker/devicemapper/devicemapper/metadata
Library Version: 1.02.107-RHEL7 (2015-10-14)
Logging Driver: journald
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: bridge host macvlan null overlay
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 977c511eda0925a723debdc94d09459af49d082a
runc version: a01dafd48bc1c7cc12bdb01206f9fea7dd6feb70
init version: 949e6fa
Security Options:
seccomp
Profile: default
selinux
Kernel Version: 3.10.0-514.10.2.el7.x86_64
Operating System: Red Hat Enterprise Linux Server 7.2 (Maipo)
OSType: linux
Architecture: x86_64
CPUs: 8
Total Memory: 23.39 GiB
Name: Vulture-Manager
ID: XPLT:7GXH:4MZW:57AC:VBG6:N3RA:O5EO:ZXXY:DWDQ:GYTE:K6Y4:P32K
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
WARNING: bridge-nf-call-ip6tables is disabled
Labels:
containerslots=25
Experimental: false
Cluster Store: consul://10.42.44.96:8500
Cluster Advertise: 10.0.0.42:2375
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: true
daemon-data-2017-03-22T071457Z.txt goroutine-stacks-2017-03-22T071457Z.txt strace-docker-stop.txt
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 18 (7 by maintainers)
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: