AWS 노트

An image does not exist locally with the tag: {account_id}.dkr.ecr.{region}.amazonaws.com/{image} 에러가 날 때

Jonchann 2020. 7. 13. 10:18

먼저 AWS Elastic Container Registry (이하 ECR) 에 {image}라는 repository 가 있는지 확인한다.

$ aws ecr describe-images --repository-name {image}

없다면 만든다.

$ aws ecr create-repository --repository-name {image}

local 에 {image} 가 없어서 에러가 나는 것이므로 local 에 {image} 를 pull 한다.

$ docker pull {account_id}.dkr.ecr.{region}.amazonaws.com/{image}:{tag}

보통 태그는 latest를 붙여서 가져온다.