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:
Andreas Stocker
2019-07-29 22:05:31 +02:00
committed by Andreas Stocker
parent 80d35c7ce4
commit 808e809f8a
+1
View File
@@ -261,6 +261,7 @@ process := &libcontainer.Process{
Stdin: os.Stdin,
Stdout: os.Stdout,
Stderr: os.Stderr,
Init: true,
}
err := container.Run(process)