Skip to content

Commit

Permalink
Windows: Ensure VolumePath is not set for Hyper-V containers
Browse files Browse the repository at this point in the history
Signed-off-by: John Howard <jhoward@microsoft.com>
  • Loading branch information
John Howard committed Jun 29, 2016
1 parent e904f58 commit fd4f5c2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libcontainerd/client_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit fd4f5c2

Please sign in to comment.