mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 06:03:57 +08:00
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:
committed by
Andreas Stocker
parent
80d35c7ce4
commit
808e809f8a
@@ -261,6 +261,7 @@ process := &libcontainer.Process{
|
|||||||
Stdin: os.Stdin,
|
Stdin: os.Stdin,
|
||||||
Stdout: os.Stdout,
|
Stdout: os.Stdout,
|
||||||
Stderr: os.Stderr,
|
Stderr: os.Stderr,
|
||||||
|
Init: true,
|
||||||
}
|
}
|
||||||
|
|
||||||
err := container.Run(process)
|
err := container.Run(process)
|
||||||
|
|||||||
Reference in New Issue
Block a user