Files
docker-docs/daemon
Solomon Hykes c9f3fd3fc7 Cleanup: refactor shutdown and signal handling facility
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>
2014-08-06 17:56:11 +00:00
..
2014-08-01 14:24:46 -04:00
2014-08-01 14:17:24 -04:00
2014-08-01 14:24:41 -04:00
2014-08-06 10:08:19 +00:00
2014-08-06 10:08:19 +00:00
2014-08-06 10:08:23 +00:00
2014-08-08 03:01:55 +00:00
2014-08-06 10:08:19 +00:00
2014-08-01 14:24:58 -04:00
2014-08-06 10:08:19 +00:00
2014-08-01 14:17:20 -04:00
2014-08-06 10:08:19 +00:00
2014-08-06 10:08:19 +00:00
2014-08-06 10:08:19 +00:00
2014-08-06 10:08:19 +00:00
2014-08-01 14:24:52 -04:00
2014-08-01 14:17:16 -04:00

This directory contains code pertaining to running containers and storing images

Code pertaining to running containers:

  • execdriver
  • networkdriver

Code pertaining to storing images:

  • graphdriver