Skip to content

Commit

Permalink
fix: use sudo for nerdctl (#2021)
Browse files Browse the repository at this point in the history
  • Loading branch information
Issacwww authored Oct 23, 2024
1 parent 62fba62 commit 6f7442e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/al2023/provisioners/install-nodeadm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ sudo systemctl start containerd
if [[ "$BUILD_IMAGE" == *"dkr.ecr"* ]]; then
# nerdctl needs the https:// prefix when logging in to the repository
# see: https://github.com/containerd/nerdctl/issues/742
aws ecr get-login-password --region $AWS_REGION | nerdctl login --username AWS --password-stdin "https://${BUILD_IMAGE%%/*}"
aws ecr get-login-password --region $AWS_REGION | sudo nerdctl login --username AWS --password-stdin "https://${BUILD_IMAGE%%/*}"
fi

sudo nerdctl run \
Expand Down

0 comments on commit 6f7442e

Please sign in to comment.