Skip to content

Commit

Permalink
first process should set Init:true opencontainers#1957
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
tmahesh committed Jan 9, 2019
1 parent bbb17ef commit be50d3c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libcontainer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,7 @@ process := &libcontainer.Process{
Stdin: os.Stdin,
Stdout: os.Stdout,
Stderr: os.Stderr,
Init: true,
}

err := container.Run(process)
Expand Down

0 comments on commit be50d3c

Please sign in to comment.