1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/container
Wentao Zhang fe1b4cfba6 Set unpasued state when receiving 'stateExit' event
Description:
 1. start a container with restart=always.
    `docker run -d --restart=always ubuntu sleep 3`
 2. container init process exits.
 3. use `docker pause <id>` to pause this container.

if the pause action is before cgroup data is removed and after the init process died.
`Pause` operation will success to write cgroup data, but actually do not freeze any process.

And then docker received pause event and stateExit event from
containerd, the docker state will be Running(paused), but the container
is free running.

Then we can not remove it, stop it , pause it  and unpause it.

Signed-off-by: Wentao Zhang <zhangwentao234@huawei.com>
2017-07-03 17:26:13 +08:00
..
stream container/stream/attach: use pools.Copy 2017-06-10 21:13:33 +03:00
archive.go Add engine-api types to docker 2016-09-07 11:05:58 -07:00
container.go LCOW: Fix nits from 33241 2017-06-27 11:59:49 -07:00
container_linux.go Add functional support for Docker sub commands on Solaris 2016-11-07 09:06:34 -08:00
container_notlinux.go support custom paths for secrets 2017-05-10 10:23:07 -07:00
container_unit_test.go LCOW: Remove CommonContainer - just Container 2017-06-20 08:55:46 -07:00
container_unix.go no need to save container state here 2017-06-23 07:52:33 -07:00
container_windows.go keep a consistent view of containers rendered 2017-06-23 07:52:31 -07:00
env.go Move ReplaceOrAppendEnvValues to container package 2016-12-21 22:42:39 +01:00
env_test.go api: clarify that Env var without = is removed from the environment 2017-03-08 04:27:25 +00:00
health.go ensure heath monitor status updates are propagated 2017-06-23 07:52:34 -07:00
history.go Release memoryStore locks before filter/apply 2016-05-23 11:45:04 -07:00
memory_store.go Add functional support for Docker sub commands on Solaris 2016-11-07 09:06:34 -08:00
memory_store_test.go Fix some output information for container test 2016-11-24 20:01:00 +08:00
monitor.go Move StreamConfig out of runconfig 2016-11-14 15:15:09 -05:00
mounts_unix.go Replace execdrivers with containerd implementation 2016-03-18 13:38:32 -07:00
mounts_windows.go Windows libcontainerd implementation 2016-03-18 13:38:41 -07:00
state.go Set unpasued state when receiving 'stateExit' event 2017-07-03 17:26:13 +08:00
state_solaris.go Re-export container state's ExitCode and Error fields 2016-08-30 14:17:09 -07:00
state_test.go Update ContainerWait API 2017-05-16 15:11:39 -07:00
state_unix.go Re-export container state's ExitCode and Error fields 2016-08-30 14:17:09 -07:00
state_windows.go Re-export container state's ExitCode and Error fields 2016-08-30 14:17:09 -07:00
store.go Extract container store from the daemon. 2016-01-19 13:21:41 -05:00
view.go container: Handle failed memdb lookups 2017-06-29 16:33:30 -07:00
view_test.go save deep copies of Container in the replica store 2017-06-23 07:52:33 -07:00