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 9f5d2d4 commit 9d2bee1Copy full SHA for 9d2bee1
1 file changed
daemon/pod/container.go
@@ -648,6 +648,18 @@ func (c *Container) containerConfig(cjson *dockertypes.ContainerJSON) (*vc.Conta
648
}
649
650
ociSpec = c.ociSpec(cjson)
651
+
652
+ //remove those namespace types from ocispec
653
+ for _, ns := range []specs.LinuxNamespaceType{
654
+ specs.NetworkNamespace,
655
+ specs.UserNamespace,
656
+ specs.UTSNamespace,
657
+ specs.IPCNamespace,
658
+ specs.CgroupNamespace,
659
+ } {
660
+ oci.RemoveNamespace(ociSpec, ns)
661
+ }
662
663
ociSpecJson, err := json.Marshal(ociSpec)
664
if err != nil {
665
return &vc.ContainerConfig{}, nil
0 commit comments