Skip to content

Commit

Permalink
pid limit env
Browse files Browse the repository at this point in the history
  • Loading branch information
mazrean committed Apr 30, 2022
1 parent c58eadb commit 85be77c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions workspace/docker/workspace.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 85be77c

Please sign in to comment.