Skip to content

Commit 49586b7

Browse files
committed
run containers with root user to access config under /root/config
Signed-off-by: pco <pasquale.convertini@ibm.com>
1 parent a479564 commit 49586b7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

docker/test/container_release_image_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ func startCommitterNodeWithReleaseImage(ctx context.Context, t *testing.T, param
195195
t.Helper()
196196

197197
configPath := filepath.Join(containerConfigPath, params.node)
198-
containerUser := fmt.Sprintf("%d:%d", os.Getuid(), os.Getgid())
198+
containerUser := "0:0"
199199
t.Logf("Starting %s as container with user %s.\n", committerReleaseImage, containerUser)
200200
createAndStartContainerAndItsLogs(ctx, t, createAndStartContainerParameters{
201201
config: &container.Config{
@@ -243,7 +243,7 @@ func startLoadgenNodeWithReleaseImage(
243243
t.Helper()
244244

245245
configPath := filepath.Join(containerConfigPath, params.node)
246-
containerUser := fmt.Sprintf("%d:%d", os.Getuid(), os.Getgid())
246+
containerUser := "0:0"
247247
t.Logf("Starting %s as container with user %s.\n", loadgenReleaseImage, containerUser)
248248
createAndStartContainerAndItsLogs(ctx, t, createAndStartContainerParameters{
249249
config: &container.Config{

0 commit comments

Comments
 (0)