Skip to content

Commit 3924195

Browse files
committed
[WIP] Fix failed to load image error.
1 parent d8ecc10 commit 3924195

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

hack/e2e-common.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,9 @@ function cluster_create {
109109
}
110110

111111
function prepare_docker_images {
112-
docker pull "$E2E_TEST_AGNHOST_IMAGE_OLD_WITH_SHA"
113-
docker pull "$E2E_TEST_AGNHOST_IMAGE_WITH_SHA"
112+
local platform="linux/$(uname -m)"
113+
docker pull --platform "$platform" "$E2E_TEST_AGNHOST_IMAGE_OLD_WITH_SHA"
114+
docker pull --platform "$platform" "$E2E_TEST_AGNHOST_IMAGE_WITH_SHA"
114115

115116
# We can load image by a digest but we cannot reference it by the digest that we pulled.
116117
# For more information https://github.com/kubernetes-sigs/kind/issues/2394#issuecomment-888713831.

0 commit comments

Comments
 (0)