From 33776ada047cfec0c449888a8fc1767e2a9878fe Mon Sep 17 00:00:00 2001 From: Phil Estes Date: Fri, 19 Mar 2021 22:51:32 -0400 Subject: [PATCH] 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 --- integration/client/container_linux_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/integration/client/container_linux_test.go b/integration/client/container_linux_test.go index 8383c3710..626d76c52 100644 --- a/integration/client/container_linux_test.go +++ b/integration/client/container_linux_test.go @@ -55,6 +55,8 @@ import ( "golang.org/x/sys/unix" ) +const testUserNSImage = "mirror.gcr.io/library/alpine:latest" + // TestRegressionIssue4769 verifies the number of task exit events. // // Issue: https://github.com/containerd/containerd/issues/4769. @@ -1596,7 +1598,7 @@ func testUserNamespaces(t *testing.T, readonlyRootFS bool) { ) defer cancel() - image, err = client.GetImage(ctx, testImage) + image, err = client.Pull(ctx, testUserNSImage, WithPullUnpack) if err != nil { t.Fatal(err) }