우분투 서버에서 ecr-login-helper 설치하기

duckiee·2023년 1월 2일
0
post-thumbnail

젠킨스로 빌드한 컨테이너를 ECR에 배포할 때가 있다.
이때 amazon-ecr-credential-helper 모듈 설치가 필요하고
awslabs의 깃허브에서 안내하는 우분투 환경 설치 명령어는 아래와 같다

sudo apt update
sudo apt install amazon-ecr-credential-helper

다만 ubuntu22.04 미만의 버전을 사용할 경우 apt update를 했음에도 해당 패키지를 불러오지 못하고 있었다.

amazon-ecr-credential-helper는 수동으로도 설치 가능하며 아래 명령어를 입력하면 된다

curl -O https://amazon-ecr-credential-helper-releases.s3.us-east-2.amazonaws.com/0.6.0/linux-amd64/docker-credential-ecr-login

chmod +x docker-credential-ecr-login

sudo mv docker-credential-ecr-login /usr/local/bin/

아래와 같이 설치 여부 확인이 가능하고, 해당 모듈의 신규 버전은 아래 링크에서 확인 가능하다.

amazon-ecr-credential-helper 릴리즈 : https://github.com/awslabs/amazon-ecr-credential-helper/releases

profile
DevOps로 진화하기

0개의 댓글