diff --git a/virtcontainers/container.go b/virtcontainers/container.go index 2c3f205971..fa645169bb 100644 --- a/virtcontainers/container.go +++ b/virtcontainers/container.go @@ -566,7 +566,7 @@ func (c *Container) unmountHostMounts() error { span, _ := c.trace("unmount") span.SetTag("host-path", m.HostPath) - if err := syscall.Unmount(m.HostPath, 0); err != nil { + if err := syscall.Unmount(m.HostPath, syscall.MNT_DETACH); err != nil { c.Logger().WithFields(logrus.Fields{ "host-path": m.HostPath, "error": err,