Skip to content

Commit

Permalink
backport of commit 36de8e9
Browse files Browse the repository at this point in the history
  • Loading branch information
lgfa29 committed Jun 2, 2023
1 parent ecf1198 commit d730e85
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion drivers/docker/driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -960,7 +960,7 @@ func (d *Driver) createContainerConfig(task *drivers.TaskConfig, driverConfig *T

PidsLimit: &pidsLimit,

Runtime: containerRuntime,
Runtime: containerRuntime,
GroupAdd: driverConfig.GroupAdd,
}

Expand Down
3 changes: 1 addition & 2 deletions drivers/docker/driver_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3094,8 +3094,7 @@ func TestDockerDriver_GroupAdd(t *testing.T) {
}
testutil.DockerCompatible(t)

task, cfg, ports := dockerTask(t)
defer freeport.Return(ports)
task, cfg, _ := dockerTask(t)
cfg.GroupAdd = []string{"12345", "9999"}
require.NoError(t, task.EncodeConcreteDriverConfig(cfg))

Expand Down

0 comments on commit d730e85

Please sign in to comment.