From be50d3c231206647d8e20d19f8279500ab0d3149 Mon Sep 17 00:00:00 2001 From: tmahesh Date: Wed, 9 Jan 2019 12:22:02 +0530 Subject: [PATCH] first process should set Init:true #1957 The first process launched in the container should set Init flag to true. otherwise the process won't be contained to configured namespace Signed-off-by: Mahesh Tiyyagura --- 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)