1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Merge pull request #24156 from Microsoft/jjh/clearbasefs

Windows: Clear volume path for Hyper-V containers
This commit is contained in:
Tibor Vass 2016-07-07 15:35:14 -07:00 committed by GitHub
commit efcf24f0c4

View file

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