Files
docker-cli/components/engine/hack/make
Michael Crosby 8ee0f56810 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>
Upstream-commit: ee3ac3aa66bfb27b7c21dfb253fdaa113baedd4e
Component: engine
2016-09-19 17:33:50 -07:00
..
2016-08-24 11:09:35 +01:00
2015-03-25 13:38:17 -04:00
2016-06-03 12:08:33 +02:00
2016-06-03 12:08:33 +02:00
2016-08-04 14:29:22 -07:00
2016-06-03 12:08:33 +02:00
2016-04-26 09:35:22 -07:00
2016-06-03 12:08:33 +02:00
2016-06-03 12:08:33 +02:00
2016-07-08 16:25:21 -04:00
2016-09-19 17:33:50 -07:00
2016-07-22 16:32:51 -04:00
2016-02-11 15:49:36 -08:00
2016-09-07 17:30:35 -04:00
2016-01-07 19:57:50 +01:00
2016-03-09 20:33:21 -08:00

This directory holds scripts called by make.sh in the parent directory.

Each script is named after the bundle it creates. They should not be called directly - instead, pass it as argument to make.sh, for example:

./hack/make.sh test
./hack/make.sh binary ubuntu

# Or to run all bundles:
./hack/make.sh

To add a bundle:

  • Create a shell-compatible file here
  • Add it to $DEFAULT_BUNDLES in make.sh