From 85be77c8f22fe8d87953b49a3584509b93559abf Mon Sep 17 00:00:00 2001 From: mazrean Date: Sun, 1 May 2022 02:13:02 +0900 Subject: [PATCH] pid limit env --- workspace/docker/workspace.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/workspace/docker/workspace.go b/workspace/docker/workspace.go index 455c1cf..3e282a3 100644 --- a/workspace/docker/workspace.go +++ b/workspace/docker/workspace.go @@ -145,8 +145,9 @@ func (w *Workspace) Recreate(ctx context.Context, workspace *domain.Workspace) ( Tty: true, }, &container.HostConfig{ Resources: container.Resources{ - NanoCPUs: cpuLimit, - Memory: memoryLimit, + NanoCPUs: cpuLimit, + Memory: memoryLimit, + PidsLimit: &pidsLimit, }, }, nil, nil, ctnName) if err != nil {