Merge pull request #24156 from Microsoft/jjh/clearbasefs
Windows: Clear volume path for Hyper-V containers Upstream-commit: efcf24f0c41412c196390d7208f908d6fc7b9ed6 Component: engine
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user