mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-01-19 16:29:17 +08:00
parent
7a1d4345fe
commit
8715cfc343
@ -896,6 +896,7 @@ func loadConfigInfo(isCreate bool, req dto.ContainerOperate, oldContainer *types
|
|||||||
}
|
}
|
||||||
hostConf.NanoCPUs = int64(req.NanoCPUs * 1000000000)
|
hostConf.NanoCPUs = int64(req.NanoCPUs * 1000000000)
|
||||||
hostConf.Memory = int64(req.Memory * 1024 * 1024)
|
hostConf.Memory = int64(req.Memory * 1024 * 1024)
|
||||||
|
hostConf.MemorySwap = 0
|
||||||
hostConf.PortBindings = portMap
|
hostConf.PortBindings = portMap
|
||||||
hostConf.Binds = []string{}
|
hostConf.Binds = []string{}
|
||||||
config.Volumes = make(map[string]struct{})
|
config.Volumes = make(map[string]struct{})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user