Skip to content

Commit 9e15c6f

Browse files
committed
run container as host user
Signed-off-by: pco <pasquale.convertini@ibm.com>
1 parent f1e704e commit 9e15c6f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

docker/test/container_release_image_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,7 @@ func startCommitterNodeWithReleaseImage(ctx context.Context, t *testing.T, param
204204
fmt.Sprintf("%s.yaml", configPath),
205205
},
206206
Hostname: params.node,
207+
User: fmt.Sprintf("%d:%d", os.Getuid(), os.Getgid()),
207208
Env: []string{
208209
"SC_COORDINATOR_SERVER_TLS_MODE=" + params.tlsMode,
209210
"SC_COORDINATOR_VERIFIER_TLS_MODE=" + params.tlsMode,
@@ -249,6 +250,7 @@ func startLoadgenNodeWithReleaseImage(
249250
fmt.Sprintf("%s.yaml", configPath),
250251
},
251252
Hostname: params.node,
253+
User: fmt.Sprintf("%d:%d", os.Getuid(), os.Getgid()),
252254
ExposedPorts: nat.PortSet{
253255
loadGenMetricsPort + "/tcp": {},
254256
},

0 commit comments

Comments
 (0)