From 808e809f8a0c2db31947a8c7bba51ba8dc4fa1df Mon Sep 17 00:00:00 2001 From: Andreas Stocker Date: Mon, 29 Jul 2019 22:05:31 +0200 Subject: [PATCH] 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 --- libcontainer/README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/libcontainer/README.md b/libcontainer/README.md index 1d7fa04c082..a791ca2d249 100644 --- a/libcontainer/README.md +++ b/libcontainer/README.md @@ -261,6 +261,7 @@ process := &libcontainer.Process{ Stdin: os.Stdin, Stdout: os.Stdout, Stderr: os.Stderr, + Init: true, } err := container.Run(process)