mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-09-15 13:58:55 +00:00
Merge pull request #963 from running99/master
container: Use lazy unmount
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user