1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/libcontainerd
Michael Crosby 2650b1b6ab 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 11:17:02 -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 11:17:02 -07:00
client_solaris.go Update libcontainerd.AddProcess to accept a context 2016-07-19 08:24:39 -07:00
client_windows.go Prepend libcontainerd log message with "libcontainerd:" 2016-07-22 15:20: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-22 15:20: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-22 15:20: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-14 10:14:53 -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: Disable VM cloning for TP5 image 2016-06-24 16:12:44 -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-22 15:20: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-19 08:24:39 -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 Windows: Disable VM cloning for TP5 image 2016-06-24 16:12:44 -07:00