moby/libcontainerd
Michael Crosby eddee8e932 Check if the container is running if no event
When there is no event for the container it can happen because of a
crash and the container state on the persistent disk will have a
mismatch between what was in `/run` ( machine crash ).

This situation will create an unkillable container in docker because
containerd does not see it and it is not running but docker thinks it is
and you cannot tell it anything different.

This fixes the issue by checking if containerd has the container running
if we do not have an event instead of just returning.

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2016-07-28 09:22:51 -07:00
..
windowsoci Windows: Use image version, not OS version for TTY fixup 2016-05-25 12:22:52 -07:00
client.go libcontainerd: reuse our pkg/locker 2016-03-29 09:43:12 -07:00
client_linux.go Check if the container is running if no event 2016-07-28 09:22:51 -07:00
client_solaris.go Update libcontainerd.AddProcess to accept a context 2016-07-25 23:15:43 -07:00
client_windows.go Prepend libcontainerd log message with "libcontainerd:" 2016-07-25 23:21:14 -07:00
container.go Reset restart timeout if execution longer than 10s 2016-04-22 10:37:34 -07:00
container_linux.go Prepend libcontainerd log message with "libcontainerd:" 2016-07-25 23:21:14 -07:00
container_solaris.go Get the Docker Engine to build clean on Solaris 2016-05-23 16:37:12 -07:00
container_windows.go Prepend libcontainerd log message with "libcontainerd:" 2016-07-25 23:21:14 -07:00
pausemonitor_linux.go Replace execdrivers with containerd implementation 2016-03-18 13:38:32 -07:00
process.go Replace execdrivers with containerd implementation 2016-03-18 13:38:32 -07:00
process_linux.go Wait for the reader fifo opening to block 2016-07-25 23:15:12 -07:00
process_solaris.go Get the Docker Engine to build clean on Solaris 2016-05-23 16:37:12 -07:00
process_windows.go Windows: Use image version, not OS version for TTY fixup 2016-05-25 12:22:52 -07:00
queue_linux.go Replace execdrivers with containerd implementation 2016-03-18 13:38:32 -07:00
remote.go Add --live-restore flag 2016-06-13 19:16:26 -07:00
remote_linux.go Prepend libcontainerd log message with "libcontainerd:" 2016-07-25 23:21:14 -07:00
remote_solaris.go Add --live-restore flag 2016-06-13 19:16:26 -07:00
remote_windows.go Add --live-restore flag 2016-06-13 19:16:26 -07:00
types.go Update libcontainerd.AddProcess to accept a context 2016-07-25 23:15:43 -07:00
types_linux.go Adding postRunProcessing infrastructure for hanlding Windows Update. 2016-04-06 14:03:05 -07:00
types_solaris.go Get the Docker Engine to build clean on Solaris 2016-05-23 16:37:12 -07:00
types_windows.go Adding servicing update to postRunProcessing for Windows containers. 2016-04-25 12:16:26 -07:00
utils_linux.go Add ulimit support to libcontainerd addprocess 2016-03-23 19:54:32 -07:00
utils_windows.go Adding servicing update to postRunProcessing for Windows containers. 2016-04-25 12:16:26 -07:00