Skip to content

Commit 33776ad

Browse files
committed
Use specific image for user namespaces tests
Due to the lack of an existing /proc dir in the rootfs of busybox, there seems to be a race between the mount of /proc and whether the root dir is already readonly? May need investigation, but for now use an image that has a /proc dir existing. Signed-off-by: Phil Estes <[email protected]>
1 parent a47feaf commit 33776ad

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

integration/client/container_linux_test.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ import (
5555
"golang.org/x/sys/unix"
5656
)
5757

58+
const testUserNSImage = "mirror.gcr.io/library/alpine:latest"
59+
5860
// TestRegressionIssue4769 verifies the number of task exit events.
5961
//
6062
// Issue: https://github.com/containerd/containerd/issues/4769.
@@ -1596,7 +1598,7 @@ func testUserNamespaces(t *testing.T, readonlyRootFS bool) {
15961598
)
15971599
defer cancel()
15981600

1599-
image, err = client.GetImage(ctx, testImage)
1601+
image, err = client.Pull(ctx, testUserNSImage, WithPullUnpack)
16001602
if err != nil {
16011603
t.Fatal(err)
16021604
}

0 commit comments

Comments
 (0)