From e4770b82895659278b67a1bddb1a5acd8d785f59 Mon Sep 17 00:00:00 2001 From: Matthew Heon Date: Mon, 17 Sep 2018 15:49:50 -0400 Subject: Small updates to OCI spec generation Firstly, when adding the privileged catch-all resource device, first remove the spec's default catch-all resource device. Second, remove our default rootfs propogation config - Docker does not set this by default, so I don't think we should either. Signed-off-by: Matthew Heon Closes: #1491 Approved by: TomSweeneyRedHat --- pkg/spec/spec.go | 3 --- 1 file changed, 3 deletions(-) (limited to 'pkg/spec/spec.go') diff --git a/pkg/spec/spec.go b/pkg/spec/spec.go index 5757a36fe..3634b0b33 100644 --- a/pkg/spec/spec.go +++ b/pkg/spec/spec.go @@ -337,9 +337,6 @@ func CreateConfigToOCISpec(config *CreateConfig) (*spec.Spec, error) { //nolint configSpec.Mounts = mounts } - if err := g.SetLinuxRootPropagation("shared"); err != nil { - return nil, errors.Wrapf(err, "failed to set propagation to rslave") - } if canAddResources { // BLOCK IO blkio, err := config.CreateBlockIO() -- cgit v1.2.3-54-g00ecf