moby--moby/api/types
Michael Crosby ee3ac3aa66 Add init process for zombie fighting
This adds a small C binary for fighting zombies.  It is mounted under
`/dev/init` and is prepended to the args specified by the user.  You
enable it via a daemon flag, `dockerd --init`, as it is disable by
default for backwards compat.

You can also override the daemon option or specify this on a per
container basis with `docker run --init=true|false`.

You can test this by running a process like this as the pid 1 in a
container and see the extra zombie that appears in the container as it
is running.

```c

int main(int argc, char ** argv) {
	pid_t pid = fork();
	if (pid == 0) {
		pid = fork();
		if (pid == 0) {
			exit(0);
		}
		sleep(3);
		exit(0);
	}
	printf("got pid %d and exited\n", pid);
	sleep(20);
}
```

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2016-09-19 17:33:50 -07:00
..
backend Add engine-api types to docker 2016-09-07 11:05:58 -07:00
blkiodev Add engine-api types to docker 2016-09-07 11:05:58 -07:00
container Add init process for zombie fighting 2016-09-19 17:33:50 -07:00
events Add engine-api types to docker 2016-09-07 11:05:58 -07:00
filters Add engine-api types to docker 2016-09-07 11:05:58 -07:00
mount Add engine-api types to docker 2016-09-07 11:05:58 -07:00
network Add engine-api types to docker 2016-09-07 11:05:58 -07:00
reference Add engine-api types to docker 2016-09-07 11:05:58 -07:00
registry Add engine-api types to docker 2016-09-07 11:05:58 -07:00
strslice Add engine-api types to docker 2016-09-07 11:05:58 -07:00
swarm Added comments to PortConfig for greater clarity 2016-09-16 14:47:35 -07:00
time Add engine-api types to docker 2016-09-07 11:05:58 -07:00
versions Move engine-api client package 2016-09-07 11:05:58 -07:00
auth.go Add engine-api types to docker 2016-09-07 11:05:58 -07:00
client.go Windows: OCI process struct convergence 2016-09-19 10:34:31 -07:00
configs.go Add engine-api types to docker 2016-09-07 11:05:58 -07:00
errors.go Add engine-api types to docker 2016-09-07 11:05:58 -07:00
plugin.go Add engine-api types to docker 2016-09-07 11:05:58 -07:00
seccomp.go Add engine-api types to docker 2016-09-07 11:05:58 -07:00
stats.go Windows: stats support 2016-09-16 11:56:15 -07:00
types.go Windows: stats support 2016-09-16 11:56:15 -07:00