I’m running docker 1.13.0 on Centos 7.3 (with kernel 4.9.6). I’m running several containers, two of which are running wildfly web servers. When I stop them shortly after starting them, there are no problems. However, after the containers have been running for a couple days, then stopping them takes on the order of 5 minutes. When I watch the docker logs output after issuing the docker stop command, the process seems to stop within a few seconds. If I have a shell in the container, I get kicked out after a few seconds. At that point, the docker stop command appears to be hung, and the dockerd process is showing 100% CPU usage. Any other docker commands I attempt to run also hang. After about 5 minutes, the docker stop command completes and other docker commands start working again. If I restart the container, I can stop it and the daemon responds within a few seconds.
It seems maybe the daemon is very busy doing some kind of cleanup for the long running container, but I haven’t been able to figure out where/what. Any ideas of where to look?