diff --git a/daemon/daemon_windows.go b/daemon/daemon_windows.go index 23baac819d..a213aa9d5f 100644 --- a/daemon/daemon_windows.go +++ b/daemon/daemon_windows.go @@ -19,7 +19,7 @@ const ( defaultVirtualSwitch = "Virtual Switch" platformSupported = true windowsMinCPUShares = 1 - windowsMaxCPUShares = 9 + windowsMaxCPUShares = 10000 ) func getBlkioWeightDevices(config *runconfig.HostConfig) ([]*blkiodev.WeightDevice, error) { diff --git a/daemon/execdriver/windows/run.go b/daemon/execdriver/windows/run.go index 67c0998061..ecf6812080 100644 --- a/daemon/execdriver/windows/run.go +++ b/daemon/execdriver/windows/run.go @@ -74,7 +74,7 @@ type containerInit struct { IgnoreFlushesDuringBoot bool // Optimisation hint for container startup in Windows LayerFolderPath string // Where the layer folders are located Layers []layer // List of storage layers - ProcessorWeight int64 // CPU Shares 1..9 on Windows; or 0 is platform default. + ProcessorWeight int64 `json:",omitempty"` // CPU Shares 0..10000 on Windows; where 0 will be ommited and HCS will default. HostName string // Hostname MappedDirectories []mappedDir // List of mapped directories (volumes/mounts) SandboxPath string // Location of unmounted sandbox (used for Hyper-V containers, not Windows Server containers)