Skip to content

Commit 6f7442e

Browse files
authored
fix: use sudo for nerdctl (#2021)
1 parent 62fba62 commit 6f7442e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/al2023/provisioners/install-nodeadm.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ sudo systemctl start containerd
1010
if [[ "$BUILD_IMAGE" == *"dkr.ecr"* ]]; then
1111
# nerdctl needs the https:// prefix when logging in to the repository
1212
# see: https://github.com/containerd/nerdctl/issues/742
13-
aws ecr get-login-password --region $AWS_REGION | nerdctl login --username AWS --password-stdin "https://${BUILD_IMAGE%%/*}"
13+
aws ecr get-login-password --region $AWS_REGION | sudo nerdctl login --username AWS --password-stdin "https://${BUILD_IMAGE%%/*}"
1414
fi
1515

1616
sudo nerdctl run \

0 commit comments

Comments
 (0)