From 6a63ddefdc754ccb8be0a9a568295d0a7d54b597 Mon Sep 17 00:00:00 2001 From: liuxuewen Date: Tue, 7 Jun 2022 20:36:43 +0800 Subject: [PATCH] Update pull-k8s-image.sh --- pull-k8s-image.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pull-k8s-image.sh b/pull-k8s-image.sh index fe4c482..4ba9529 100644 --- a/pull-k8s-image.sh +++ b/pull-k8s-image.sh @@ -12,8 +12,8 @@ if [ -x "$(command -v docker)" ]; then fi if [ -x "$(command -v ctr)" ]; then - sudo ctr image pull docker.io/${mirror_img} - sudo ctr image tag docker.io/${mirror_img} ${k8s_img} + sudo ctr -n k8s.io image pull docker.io/${mirror_img} + sudo ctr -n k8s.io image tag docker.io/${mirror_img} ${k8s_img} exit 0 fi