From a2bfa5acaa9dfcf8c895ce978218b129484b532b Mon Sep 17 00:00:00 2001 From: ssongliu <73214554+ssongliu@users.noreply.github.com> Date: Fri, 20 Oct 2023 14:16:45 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=A7=A3=E5=86=B3=E5=AE=B9=E5=99=A8?= =?UTF-8?q?=E7=BC=96=E8=BE=91=E5=86=85=E5=AD=98=E9=99=90=E9=A2=9D=E5=A4=B1?= =?UTF-8?q?=E8=B4=A5=E7=9A=84=E9=97=AE=E9=A2=98=20(#2607)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Refs #2608 --- backend/app/service/container.go | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/app/service/container.go b/backend/app/service/container.go index 2f2070b5e..64ba3f4f5 100644 --- a/backend/app/service/container.go +++ b/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{})