浏览代码

Fix missing mount ID on volume unmount

Fixes #25331

Signed-off-by: Brian Goff <cpuguy83@gmail.com>
Brian Goff 9 年之前
父节点
当前提交
63983f3ffe
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      container/container_unix.go

+ 1 - 1
container/container_unix.go

@@ -325,7 +325,7 @@ func (container *Container) UnmountVolumes(forceSyscall bool, volumeEventLog fun
 			return err
 			return err
 		}
 		}
 
 
-		volumeMounts = append(volumeMounts, volume.MountPoint{Destination: dest, Volume: mntPoint.Volume})
+		volumeMounts = append(volumeMounts, volume.MountPoint{Destination: dest, Volume: mntPoint.Volume, ID: mntPoint.ID})
 	}
 	}
 
 
 	// Append any network mounts to the list (this is a no-op on Windows)
 	// Append any network mounts to the list (this is a no-op on Windows)