DockerCLI/docs/reference/commandline
Michael Crosby d72deed554 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>
2017-06-02 00:10:10 +00:00
..
attach.md fix some incorrect symbols before executing command 2017-06-02 00:10:09 +00:00
build.md Fix documentation for `Step 0` to `Step 1` in `docker build` 2017-06-02 00:10:09 +00:00
cli.md Remove -h option for docker cli 2017-06-02 00:10:08 +00:00
commit.md Updates on cli reference documentation 2017-06-02 00:07:49 +00:00
cp.md Updates on cli reference documentation 2017-06-02 00:07:49 +00:00
create.md Restore missing "format" example 2017-06-02 00:10:10 +00:00
deploy.md Append --registry-auth with with 2017-06-02 00:10:02 +00:00
diff.md Updates on cli reference documentation 2017-06-02 00:07:49 +00:00
docker_images.gif retooling for hugo 2017-06-02 00:06:58 +00:00
dockerd.md Add init process for zombie fighting 2017-06-02 00:10:10 +00:00
events.md add `docker events --format` 2017-06-02 00:10:10 +00:00
exec.md update option for docker commands 2017-06-02 00:10:09 +00:00
export.md Updates on cli reference documentation 2017-06-02 00:07:49 +00:00
history.md Updates on cli reference documentation 2017-06-02 00:07:49 +00:00
images.md Updates on cli reference documentation 2017-06-02 00:07:49 +00:00
import.md Updates on cli reference documentation 2017-06-02 00:07:49 +00:00
index.md make node ps default to self in swarm node 2017-06-02 00:10:07 +00:00
info.md fix typo for docs reference 2017-06-02 00:10:10 +00:00
inspect.md update option for docker commands 2017-06-02 00:10:09 +00:00
kill.md update command description in CLI 2017-06-02 00:10:03 +00:00
load.md Updates on cli reference documentation 2017-06-02 00:07:49 +00:00
login.md fix docs about `sudo docker login` 2017-06-02 00:10:08 +00:00
logout.md Updates on cli reference documentation 2017-06-02 00:07:49 +00:00
logs.md Add link to logging drivers reference 2017-06-02 00:10:10 +00:00
menu.md add menu.md, make index.md command line reference, update typos/minor errors in cli docs 2017-06-02 00:07:47 +00:00
network_connect.md add overlay networking security model node 2017-06-02 00:10:05 +00:00
network_create.md Fix mtu option in documentation 2017-06-02 00:10:10 +00:00
network_disconnect.md add overlay networking security model node 2017-06-02 00:10:05 +00:00
network_inspect.md add overlay networking security model node 2017-06-02 00:10:05 +00:00
network_ls.md Fix incorrect help output in `docker network ls` 2017-06-02 00:10:08 +00:00
network_rm.md add overlay networking security model node 2017-06-02 00:10:05 +00:00
node_demote.md update command description in CLI 2017-06-02 00:10:03 +00:00
node_inspect.md Update example output for node inspect 2017-06-02 00:10:04 +00:00
node_ls.md cli: `docker service|node|stack ps` instead of tasks 2017-06-02 00:10:03 +00:00
node_promote.md update command description in CLI 2017-06-02 00:10:03 +00:00
node_ps.md make node ps default to self in swarm node 2017-06-02 00:10:07 +00:00
node_rm.md Add --force to node removal 2017-06-02 00:10:03 +00:00
node_update.md cli: `docker service|node|stack ps` instead of tasks 2017-06-02 00:10:03 +00:00
pause.md Updates on cli reference documentation 2017-06-02 00:07:49 +00:00
plugin_disable.md replace active by enabled for consistency in plugins 2017-06-02 00:10:07 +00:00
plugin_enable.md replace active by enabled for consistency in plugins 2017-06-02 00:10:07 +00:00
plugin_inspect.md make command "docker plugin inspect" complete 2017-06-02 00:10:08 +00:00
plugin_install.md Update plugin install docs with registry specifics. 2017-06-02 00:10:09 +00:00
plugin_ls.md Miss the options in some commands 2017-06-02 00:10:08 +00:00
plugin_rm.md check inconsistant command in docs/reference/commandline 2017-06-02 00:10:09 +00:00
port.md Updates on cli reference documentation 2017-06-02 00:07:49 +00:00
ps.md expose RemovalInProgress in StateString #25652 2017-06-02 00:10:06 +00:00
pull.md Updates on cli reference documentation 2017-06-02 00:07:49 +00:00
push.md fix typo for docs reference 2017-06-02 00:10:10 +00:00
rename.md Modify rename function usage 2017-06-02 00:10:09 +00:00
restart.md update command description 2017-06-02 00:10:07 +00:00
rm.md Updates on cli reference documentation 2017-06-02 00:07:49 +00:00
rmi.md Updates on cli reference documentation 2017-06-02 00:07:49 +00:00
run.md Misty's edits and additions 2017-06-02 00:10:10 +00:00
save.md Updates on cli reference documentation 2017-06-02 00:07:49 +00:00
search.md Updates on cli reference documentation 2017-06-02 00:07:49 +00:00
service_create.md Fix Markdown formatting and missing prompt in service create 2017-06-02 00:10:10 +00:00
service_inspect.md cli: `docker service|node|stack ps` instead of tasks 2017-06-02 00:10:03 +00:00
service_ls.md cli: `docker service|node|stack ps` instead of tasks 2017-06-02 00:10:03 +00:00
service_ps.md Add --no-trunc to service/node/stack ps output 2017-06-02 00:10:05 +00:00
service_rm.md Remove the option for the command service rm 2017-06-02 00:10:08 +00:00
service_scale.md cli: `docker service|node|stack ps` instead of tasks 2017-06-02 00:10:03 +00:00
service_update.md Misty's edits and additions 2017-06-02 00:10:10 +00:00
stack_config.md docs: add initial reference for "stack services" 2017-06-02 00:10:01 +00:00
stack_deploy.md docs: add initial reference for "stack services" 2017-06-02 00:10:01 +00:00
stack_rm.md docs: add initial reference for "stack services" 2017-06-02 00:10:01 +00:00
stack_services.md docs: add initial reference for "stack services" 2017-06-02 00:10:01 +00:00
stack_tasks.md docs: add initial reference for "stack services" 2017-06-02 00:10:01 +00:00
start.md Updates on cli reference documentation 2017-06-02 00:07:49 +00:00
stats.md Windows: stats support 2017-06-02 00:10:10 +00:00
stop.md Updates on cli reference documentation 2017-06-02 00:07:49 +00:00
swarm_init.md Sanitize uses of Swarm as a proper and improper noun 2017-06-02 00:10:09 +00:00
swarm_join.md Sanitize uses of Swarm as a proper and improper noun 2017-06-02 00:10:09 +00:00
swarm_join_token.md Modify usage of docker swarm join-token command 2017-06-02 00:10:06 +00:00
swarm_leave.md Specify woker node for docker swarm leave command 2017-06-02 00:10:05 +00:00
swarm_update.md fix typo, change sample cert expiry value 2017-06-02 00:10:04 +00:00
tag.md Updates on cli reference documentation 2017-06-02 00:07:49 +00:00
top.md Updates on cli reference documentation 2017-06-02 00:07:49 +00:00
unpause.md Updates on cli reference documentation 2017-06-02 00:07:49 +00:00
update.md fix typo for docs reference 2017-06-02 00:10:10 +00:00
version.md Updates on cli reference documentation 2017-06-02 00:07:49 +00:00
volume_create.md Add option to specify name without --name in volume create 2017-06-02 00:10:07 +00:00
volume_inspect.md Updates on cli reference documentation 2017-06-02 00:07:49 +00:00
volume_ls.md Add option to specify name without --name in volume create 2017-06-02 00:10:07 +00:00
volume_rm.md Add `--force` in `docker volume rm` to fix out-of-band volume driver deletion 2017-06-02 00:10:06 +00:00
wait.md update command description 2017-06-02 00:10:07 +00:00