mirror of https://github.com/docker/docs.git
Windows: Ensure VolumePath is not set for Hyper-V containers
Signed-off-by: John Howard <jhoward@microsoft.com> (cherry picked from commit fd4f5c23650799a7e76e193614bf82454b375fe3) Signed-off-by: Tibor Vass <tibor@docker.com>
This commit is contained in:
parent
f831be849b
commit
0a861141fa
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue