1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/daemon
Brian Goff 7fd23345c9 Wait for container exit before forcing handler
This code assumes that we missed an exit event since the container is
still marked as running in Docker but attempts to signal the process in
containerd returns a "process not found" error.

There is a case where the event wasn't missed, just that it hasn't been
processed yet.

This change tries to work around that possibility by waiting to see if
the container is eventually marked as stopped. It uses the container's
configured stop timeout for this.

Signed-off-by: Brian Goff <cpuguy83@gmail.com>
2020-08-11 21:33:59 +00:00
..
cluster
config
discovery
events
exec
graphdriver
images
initlayer
links
listeners
logger Merge pull request #41239 from cpuguy83/fix_racey_logger_test 2020-07-21 01:04:53 +02:00
names
network
stats
testdata
apparmor_default.go
apparmor_default_unsupported.go
archive.go
archive_tarcopyoptions.go
archive_tarcopyoptions_unix.go
archive_tarcopyoptions_windows.go Add canonical import comment 2018-02-05 16:51:57 -05:00
archive_unix.go
archive_windows.go Add canonical import comment 2018-02-05 16:51:57 -05:00
attach.go
auth.go
changes.go
checkpoint.go
cluster.go Move network conversions out of API router 2018-06-27 17:11:29 -07:00
commit.go
configs.go
configs_linux.go
configs_unsupported.go
configs_windows.go
container.go
container_linux.go
container_operations.go
container_operations_unix.go
container_operations_windows.go
container_unix_test.go
container_windows.go daemon: fix capitalization of some functions 2020-04-14 17:22:19 +02:00
create.go
create_test.go
create_unix.go
create_windows.go
daemon.go
daemon_linux.go
daemon_linux_test.go
daemon_test.go
daemon_unix.go
daemon_unix_test.go
daemon_unsupported.go cgroup2: implement docker info 2020-04-17 07:20:01 +09:00
daemon_windows.go
daemon_windows_test.go
debugtrap_unix.go
debugtrap_unsupported.go
debugtrap_windows.go
delete.go
delete_test.go
dependency.go Add canonical import comment 2018-02-05 16:51:57 -05:00
devices_linux.go Add DeviceRequests to HostConfig to support NVIDIA GPUs 2019-03-18 17:19:45 +00:00
disk_usage.go
errors.go
events.go
events_test.go daemon: rename variables that collide with imported package names 2020-04-14 17:22:23 +02:00
exec.go remove uses of deprecated pkg/term 2020-04-21 16:29:27 +02:00
exec_linux.go
exec_linux_test.go
exec_windows.go
export.go daemon: rename variables that collide with imported package names 2020-04-14 17:22:23 +02:00
health.go
health_test.go
info.go
info_test.go
info_unix.go
info_unix_test.go
info_windows.go Make cgroup namespaces configurable 2019-05-07 10:22:16 -07:00
inspect.go
inspect_linux.go
inspect_test.go
inspect_windows.go
keys.go
keys_unsupported.go
kill.go Wait for container exit before forcing handler 2020-08-11 21:33:59 +00:00
licensing.go
licensing_test.go
links.go Add canonical import comment 2018-02-05 16:51:57 -05:00
list.go
list_test.go daemon: rename variables that collide with imported package names 2020-04-14 17:22:23 +02:00
list_unix.go
list_windows.go
logdrivers_linux.go
logdrivers_windows.go
logs.go
logs_test.go
metrics.go
metrics_unix.go
metrics_unsupported.go
monitor.go
mounts.go
names.go
network.go
network_windows.go
nvidia_linux.go
oci_linux.go
oci_linux_test.go
oci_utils.go
oci_windows.go
oci_windows_test.go
pause.go
prune.go API: add "prune" events 2020-07-28 12:41:14 +02:00
reload.go
reload_test.go
reload_unix.go
reload_windows.go
rename.go
resize.go
resize_test.go bump gotest.tools v3.0.1 for compatibility with Go 1.14 2020-02-11 00:06:42 +01:00
restart.go
runtime_unix.go
seccomp_disabled.go
seccomp_linux.go
seccomp_unsupported.go
secrets.go
secrets_linux.go
secrets_unsupported.go
secrets_windows.go
selinux_linux.go
selinux_unsupported.go
start.go Configure shims from runtime config 2020-07-13 14:18:02 -07:00
start_unix.go
start_windows.go
stats.go
stats_collector.go Add canonical import comment 2018-02-05 16:51:57 -05:00
stats_unix.go
stats_windows.go
stop.go
top_unix.go
top_unix_test.go
top_windows.go
trustkey.go
trustkey_test.go
unpause.go
update.go
update_linux.go
update_windows.go Windows: Experimental: Allow containerd for runtime 2019-03-12 18:41:55 -07:00
util_test.go
volumes.go
volumes_linux.go
volumes_linux_test.go
volumes_unit_test.go
volumes_unix.go daemon: rename variables that collide with imported package names 2020-04-14 17:22:23 +02:00
volumes_unix_test.go
volumes_windows.go
wait.go Switch from x/net/context -> context 2018-04-23 13:52:44 -07:00
workdir.go