mirror of https://github.com/docker/docs.git
This disentangles the following functions, which were previously all mixed together: * 1) Waiting for jobs to terminate when shutting down * 2) Handling signals in the Docker daemon * 3) Per-subsystem cleanup handlers * 4) pidfile management Responsibilities are dispatched as follows: * Signal traps are set in `main`, and trigger `engine.Shutdown` * `engine.Shutdown` coordinates cleanup by waiting for jobs to complete, and calling shutdown handlers * To perform cleanup at shutdown, each subsystem registers handlers with `engine.OnShutdown` * `daemon` is one subsystem, so it registers cleanup via `engine.OnShutdown`. * `daemon` owns the pidfile, which is used to lock access to `/var/lib/docker`. Part of its cleanup is to remove the pidfile. Signed-off-by: Solomon Hykes <solomon@docker.com> |
||
---|---|---|
.. | ||
execdriver | ||
graphdriver | ||
networkdriver | ||
MAINTAINERS | ||
README.md | ||
attach.go | ||
changes.go | ||
commit.go | ||
container.go | ||
container_unit_test.go | ||
copy.go | ||
create.go | ||
daemon.go | ||
daemon_aufs.go | ||
daemon_btrfs.go | ||
daemon_devicemapper.go | ||
daemon_no_aufs.go | ||
delete.go | ||
export.go | ||
history.go | ||
image_delete.go | ||
info.go | ||
inspect.go | ||
kill.go | ||
list.go | ||
logs.go | ||
network_settings.go | ||
pause.go | ||
resize.go | ||
restart.go | ||
server.go | ||
start.go | ||
state.go | ||
state_test.go | ||
stop.go | ||
top.go | ||
utils.go | ||
utils_linux.go | ||
utils_nolinux.go | ||
utils_test.go | ||
volumes.go | ||
wait.go |
README.md
This directory contains code pertaining to running containers and storing images
Code pertaining to running containers:
- execdriver
- networkdriver
Code pertaining to storing images:
- graphdriver