소스 검색

Merge pull request #24156 from Microsoft/jjh/clearbasefs

Windows: Clear volume path for Hyper-V containers
Tibor Vass 9 년 전
부모
커밋
efcf24f0c4
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      libcontainerd/client_windows.go

+ 1 - 0
libcontainerd/client_windows.go

@@ -81,6 +81,7 @@ func (clnt *client) Create(containerID string, spec Spec, options ...CreateOptio
 	}
 
 	if spec.Windows.HvRuntime != nil {
+		configuration.VolumePath = "" // Always empty for Hyper-V containers
 		configuration.HvPartition = true
 		configuration.HvRuntime = &hcsshim.HvRuntime{
 			ImagePath: spec.Windows.HvRuntime.ImagePath,