AWS ECR 인증 + Repository 생성 + 이미지 푸시

  • AnneBullock
    (AnneBullock)
  • AnneBullock's Avatar 이 글의 작성자
  • Offline
  • Newbie
  • Newbie
더보기
17 Nov 2021 15:27 - 04 Jan 2022 12:55 #5404 작성자: AnneBullock
AnneBullock 님의 글: AWS ECR 인증 + Repository 생성 + 이미지 푸시
0. 관련 스레드

sarc.io/index.php/forum/tips/3560-html-nginx-docker-image

1. ECR 접속 인증

aws ecr get-login-password --region ap-northeast-2 | docker login --username AWS --password-stdin 1111.dkr.ecr.ap-northeast-2.amazonaws.com

2. ECR Repository 생성

aws ecr create-repository \
--repository-name nginx-test \
--image-scanning-configuration scanOnPush=true \
--region ap-northeast-2

3. 이미지 태그

docker tag nginx-test:latest 1111.dkr.ecr.ap-northeast-2.amazonaws.com/nginx-test:latest

4. 이미지 푸시

docker push 1111.dkr.ecr.ap-northeast-2.amazonaws.com/nginx-test:latest
Time to create page: 0.045 seconds
Powered by Kunena Forum