We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e40d463 commit 4af4f40Copy full SHA for 4af4f40
libcontainer/standard_init_linux.go
@@ -78,8 +78,11 @@ func (l *linuxStandardInit) Init() error {
78
}
79
80
label.Init()
81
- if err := prepareRootfs(l.pipe, l.config); err != nil {
82
- return err
+ // prepareRootfs() can be executed only for a new mount namespace.
+ if l.config.Config.Namespaces.Contains(configs.NEWNS) {
83
+ if err := prepareRootfs(l.pipe, l.config); err != nil {
84
+ return err
85
+ }
86
87
// Set up the console. This has to be done *before* we finalize the rootfs,
88
// but *after* we've given the user the chance to set up all of the mounts
0 commit comments