Skip to content

Commit

Permalink
feat: 解决容器编辑内存限额失败的问题 (#2607)
Browse files Browse the repository at this point in the history
Refs #2608
  • Loading branch information
ssongliu authored and wanghe-fit2cloud committed Oct 22, 2023
1 parent 609aa04 commit a2bfa5a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions backend/app/service/container.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{})
Expand Down

0 comments on commit a2bfa5a

Please sign in to comment.