Merge pull request #963 from running99/master

container: Use lazy unmount
This commit is contained in:
Frank Cao 2018-12-26 09:50:44 +08:00 committed by GitHub
commit 174e0c98bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,