mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Don't dereference HostConfig.MemorySwapiness if nil
Signed-off-by: Darren Shepherd <darren@rancher.com>
This commit is contained in:
parent
7470e39c73
commit
5ac12c418f
1 changed files with 5 additions and 1 deletions
|
@ -199,7 +199,11 @@ func (daemon *Daemon) populateCommand(c *container.Container, env []string) erro
|
|||
BlkioThrottleReadBpsDevice: readBpsDevice,
|
||||
BlkioThrottleWriteBpsDevice: writeBpsDevice,
|
||||
OomKillDisable: c.HostConfig.OomKillDisable,
|
||||
MemorySwappiness: *c.HostConfig.MemorySwappiness,
|
||||
MemorySwappiness: -1,
|
||||
}
|
||||
|
||||
if c.HostConfig.MemorySwappiness != nil {
|
||||
resources.MemorySwappiness = *c.HostConfig.MemorySwappiness
|
||||
}
|
||||
|
||||
processConfig := execdriver.ProcessConfig{
|
||||
|
|
Loading…
Add table
Reference in a new issue