mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Windows: Fix ADD from URL in dockerfile
Signed-off-by: John Howard <jhoward@microsoft.com>
This commit is contained in:
parent
de8b5c46cc
commit
608b3db5c8
1 changed files with 4 additions and 0 deletions
|
@ -36,6 +36,10 @@ func checkKernel() error {
|
||||||
// adaptContainerSettings is called during container creation to modify any
|
// adaptContainerSettings is called during container creation to modify any
|
||||||
// settings necessary in the HostConfig structure.
|
// settings necessary in the HostConfig structure.
|
||||||
func (daemon *Daemon) adaptContainerSettings(hostConfig *runconfig.HostConfig, adjustCPUShares bool) {
|
func (daemon *Daemon) adaptContainerSettings(hostConfig *runconfig.HostConfig, adjustCPUShares bool) {
|
||||||
|
if hostConfig == nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
if hostConfig.CPUShares < 0 {
|
if hostConfig.CPUShares < 0 {
|
||||||
logrus.Warnf("Changing requested CPUShares of %d to minimum allowed of %d", hostConfig.CPUShares, windowsMinCPUShares)
|
logrus.Warnf("Changing requested CPUShares of %d to minimum allowed of %d", hostConfig.CPUShares, windowsMinCPUShares)
|
||||||
hostConfig.CPUShares = windowsMinCPUShares
|
hostConfig.CPUShares = windowsMinCPUShares
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue