moby: Docker ps hang
Description
The Docker daemon becomes unresponsive and causes docker ps
to hang, containers still continue to run and function fine. A stack trace of the Docker daemon:-
https://gist.github.com/dmyerscough/ced7616a5e8072315e7ea82ef797414c
Steps to reproduce the issue:
- Docker daemon runs for 11 hours then the daemon becomes unresponsive
Describe the results you received:
Docker daemon becomes unresponsive.
Describe the results you expected:
Docker daemon shouldn’t become unresponsive.
Additional information you deem important (e.g. issue happens only occasionally):
Output of docker version
:
Client:
Version: 1.12.1
API version: 1.24
Go version: go1.6.3
Git commit: 23cf638
Built: Thu Aug 18 05:02:53 2016
OS/Arch: linux/amd64
Server:
Version: 1.12.1
API version: 1.24
Go version: go1.6.3
Git commit: 23cf638
Built: Thu Aug 18 05:02:53 2016
OS/Arch: linux/amd64
Output of docker info
:
Containers: 19
Running: 19
Paused: 0
Stopped: 0
Images: 78
Server Version: 1.12.1
Storage Driver: overlay
Backing Filesystem: extfs
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: bridge null overlay host
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Security Options:
Kernel Version: 4.4.32
Operating System: Debian GNU/Linux 8 (jessie)
OSType: linux
Architecture: x86_64
CPUs: 24
Total Memory: 125.8 GiB
Name: appdocker242-dca1
ID: 36EB:Y3SF:VHJR:3NIB:IXSX:PDVE:IJ7J:W4KQ:HUOH:V3EQ:FRTX:L6EM
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
WARNING: No swap limit support
WARNING: No kernel memory limit support
WARNING: bridge-nf-call-iptables is disabled
WARNING: bridge-nf-call-ip6tables is disabled
Insecure Registries:
10.0.0.0/8
127.0.0.0/8
Additional environment details (AWS, VirtualBox, physical, etc.):
Physical
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 46 (19 by maintainers)
@mlaventure we also have the problem (we tried with Docker 1.11, 1.12.1 and 1.12.3) that
docker ps
hangs. Fun fact: we can “always” resolve this by doingstrace -p {dockerd-pid} -f
.Do you have a link to the fix/patch in master?
@hjacobs
Those two PR should do the trick:
@gservat @tj13 These versions of docker out way past their support period. There are numerous fixes for the
docker ps
hang symptom. The most recent “stable” release is 17.12 (hot of the presses), or alternatively 17.09 is still supported for another month.@hjacobs I believe we are pulling these stdio fixes into the 1.12 branch as well.
Hi, I consistently have this issue in my cluster (CoreOS 1235.9.0, Docker 1.12.6) but strace doesn’t seems to help. Both with btrfs and devicemapper storage drivers, on 6 nodes. High CPU usage of dockerd when it happens, reply comes in correlation with normal (<1%) CPU usage.
Should I open another issue?
top output:
strace output:
docker info:
Thanks!