mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
Support update swap memory only
We should support update swap memory without memory. Signed-off-by: Qiang Huang <h.huangqiang@huawei.com>
This commit is contained in:
@@ -12,7 +12,7 @@ import (
|
||||
func (daemon *Daemon) ContainerUpdate(name string, hostConfig *container.HostConfig) ([]string, error) {
|
||||
var warnings []string
|
||||
|
||||
warnings, err := daemon.verifyContainerSettings(hostConfig, nil)
|
||||
warnings, err := daemon.verifyContainerSettings(hostConfig, nil, true)
|
||||
if err != nil {
|
||||
return warnings, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user