Merge pull request #5235 from estesp/testimage-userns-ro
Use specific image for user namespaces tests
This commit is contained in:
commit
6150170d95
@ -55,6 +55,8 @@ import (
|
|||||||
"golang.org/x/sys/unix"
|
"golang.org/x/sys/unix"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
const testUserNSImage = "mirror.gcr.io/library/alpine:latest"
|
||||||
|
|
||||||
// TestRegressionIssue4769 verifies the number of task exit events.
|
// TestRegressionIssue4769 verifies the number of task exit events.
|
||||||
//
|
//
|
||||||
// Issue: https://github.com/containerd/containerd/issues/4769.
|
// Issue: https://github.com/containerd/containerd/issues/4769.
|
||||||
@ -1596,7 +1598,7 @@ func testUserNamespaces(t *testing.T, readonlyRootFS bool) {
|
|||||||
)
|
)
|
||||||
defer cancel()
|
defer cancel()
|
||||||
|
|
||||||
image, err = client.GetImage(ctx, testImage)
|
image, err = client.Pull(ctx, testUserNSImage, WithPullUnpack)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user