Skip to content

Commit

Permalink
Use crictl to pull sandbox image
Browse files Browse the repository at this point in the history
  • Loading branch information
cartermckinnon committed Jan 31, 2024
1 parent 616bdda commit 96a28ab
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion files/pull-sandbox-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,9 @@ if [[ "$(sudo ctr --namespace k8s.io image ls | grep $sandbox_image)" != "" ]];
exit 0
fi

/etc/eks/containerd/pull-image.sh "${sandbox_image}"
ecr_password=$(aws ecr get-login-password)
if [[ -z ${ecr_password} ]]; then
echo >&2 "Unable to retrieve the ECR password."
exit 1
fi
sudo crictl pull "${sandbox_image}" --creds AWS:${ecr_password}

0 comments on commit 96a28ab

Please sign in to comment.