Browse Source

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

Refs #2608
release-1.7
ssongliu 1 year ago committed by wanghe-fit2cloud
parent
commit
a2bfa5acaa
  1. 1
      backend/app/service/container.go

1
backend/app/service/container.go

@ -885,6 +885,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