feat: 解决容器编辑内存限额失败的问题 (#2607)

Refs #2608
pull/2612/head
ssongliu 1 year ago committed by GitHub
parent 7a1d4345fe
commit 8715cfc343
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -896,6 +896,7 @@ func loadConfigInfo(isCreate bool, req dto.ContainerOperate, oldContainer *types
}
hostConf.NanoCPUs = int64(req.NanoCPUs * 1000000000)
hostConf.Memory = int64(req.Memory * 1024 * 1024)
hostConf.MemorySwap = 0
hostConf.PortBindings = portMap
hostConf.Binds = []string{}
config.Volumes = make(map[string]struct{})

Loading…
Cancel
Save