Skip to content

Commit 14904a8

Browse files
committed
experiment: revert change to container_inspect_linux.go
1 parent 6949f84 commit 14904a8

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

libpod/container_inspect_linux.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -292,13 +292,6 @@ func (c *Container) platformInspectContainerHostConfig(ctrSpec *spec.Spec, hostC
292292
}
293293
}
294294
}
295-
296-
// If userns=auto, setting up the namespace is deferred until the container
297-
// is created. If the container is configured, check if it is going to have a
298-
// private userns and return accordingly
299-
if c.state.State == define.ContainerStateConfigured && c.config.IDMappings.AutoUserNs {
300-
usernsMode = "private"
301-
}
302295
}
303296
hostConfig.UsernsMode = usernsMode
304297
if c.config.IDMappings.UIDMap != nil && c.config.IDMappings.GIDMap != nil {

0 commit comments

Comments
 (0)