I came across an interesting behavior where a Docker container's status got out of sync with an lxc container.
docker ps showed my container (ae23c705afdb) with a status of running. However, whenever I try running docker kill or docker stop, the command hangs indefinitely. docker rm says that it cannot remove a container that is running.docker inspect ae23c705afdb confirmed the running state and showed a PID of 11780.ps aux | grep 11780 showed a process that was running (lxc-start -n ae23c705afdbbcfcd723c7bb17fbdbc7c8632da41e5e8c38bbf714a701b5b536 -f /var/lib/docker/containers/...), but it's state is shown as D, or "uninterruptible sleep". This process thus does not respond to any interrupts.lxc-list does not show the corresponding lxc container running, so lxc-kill xxx does not work.
I ended up just having to do a reboot. Any thoughts on this?
I came across an interesting behavior where a Docker container's status got out of sync with an lxc container.
docker psshowed my container (ae23c705afdb) with a status of running. However, whenever I try runningdocker killordocker stop, the command hangs indefinitely.docker rmsays that it cannot remove a container that is running.docker inspect ae23c705afdbconfirmed the running state and showed a PID of 11780.ps aux | grep 11780showed a process that was running (lxc-start -n ae23c705afdbbcfcd723c7bb17fbdbc7c8632da41e5e8c38bbf714a701b5b536 -f /var/lib/docker/containers/...), but it's state is shown asD, or "uninterruptible sleep". This process thus does not respond to any interrupts.lxc-listdoes not show the corresponding lxc container running, solxc-kill xxxdoes not work.I ended up just having to do a reboot. Any thoughts on this?