mirror of
https://github.com/anjia0532/gcr.io_mirror.git
synced 2025-09-23 12:19:22 +08:00
Update pull-k8s-image.sh
This commit is contained in:
@@ -12,8 +12,8 @@ if [ -x "$(command -v docker)" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -x "$(command -v ctr)" ]; then
|
if [ -x "$(command -v ctr)" ]; then
|
||||||
sudo ctr image pull docker.io/${mirror_img}
|
sudo ctr -n k8s.io image pull docker.io/${mirror_img}
|
||||||
sudo ctr image tag docker.io/${mirror_img} ${k8s_img}
|
sudo ctr -n k8s.io image tag docker.io/${mirror_img} ${k8s_img}
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user