Skip to content
This repository has been archived by the owner on Oct 13, 2023. It is now read-only.

Commit

Permalink
Document --init flag for docker run
Browse files Browse the repository at this point in the history
Signed-off-by: Nathan LeClaire <[email protected]>
Upstream-commit: f571b363e6ea9cbc159514ba2314dfca8e73484b
Component: cli
  • Loading branch information
nathanleclaire authored and Tibor Vass committed Jun 2, 2017
1 parent b40caaa commit 5a52b7e
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions components/cli/docs/reference/run.md
Original file line number Diff line number Diff line change
Expand Up @@ -667,6 +667,17 @@ It also causes any seccomp filters to be applied later, after privileges have be
which may mean you can have a more restrictive set of filters.
For more details, see the [kernel documentation](https://www.kernel.org/doc/Documentation/prctl/no_new_privs.txt).

## Specifying an init process

You can use the `--init` or `--init-path` flags to specify a process which
should be used as the PID 1 in the container, and which binary to use for this
init process, respectively. Specifying an init process ensures the usual
responsibilties of an init system, such as reaping zombie processes, are
performed inside the created container.

The default init process used when specifying `--init` without `--init-path` is
[tini](https://github.com/krallin/tini).

## Specifying custom cgroups

Using the `--cgroup-parent` flag, you can pass a specific cgroup to run a
Expand Down

0 comments on commit 5a52b7e

Please sign in to comment.