doc: First process in container needs `Init: true`
`Init` on the `Process` struct specifies whether the process is the first process in the container. This needs to be set to `true` when running the container. Signed-off-by: Andreas Stocker <astocker@anexia-it.com>
This commit is contained in:
parent
80d35c7ce4
commit
808e809f8a
|
@ -261,6 +261,7 @@ process := &libcontainer.Process{
|
|||
Stdin: os.Stdin,
|
||||
Stdout: os.Stdout,
|
||||
Stderr: os.Stderr,
|
||||
Init: true,
|
||||
}
|
||||
|
||||
err := container.Run(process)
|
||||
|
|
Loading…
Reference in New Issue