Amazon ECR (Elastic Container Registry)

Reference: AWS docs

What is Amazon Elasitc Container Registry?

  • Amazon ECR(Elastic Container Registry)๋Š” ์•ˆ์ „ํ•˜๊ณ  ํ™•์žฅ ๊ฐ€๋Šฅ ํ•˜๋ฉฐ ์‹ ๋ขฐ ํ•  ์ˆ˜ ์žˆ๋Š” Fully-managed Docker Container Image Registry Service ์ด๋‹ค

  • ECR์€ AWS IAM ์„ ํ™œ์šฉํ•œ resource-based permission ์„ ์ œ๊ณตํ•œ๋‹ค

    • How?

      • ํŠน์ • user ํ˜น์€ EC2 instance๋งŒ ECR repository์™€ image ์— ์ ‘์† ํ•  ์ˆ˜ ์žˆ๋‹ค

  • ๊ฐœ๋ฐœ์ž๋Š” Preferred CLi๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ Docker image, OCI (Open Container Initiative) image ๋ฐ OCI ํ˜ธํ™˜ artifact๋ฅผ push, pull ๋ฐ ๊ด€๋ฆฌ ํ•  ์ˆ˜ ์žˆ๋‹ค

Components of Amazon ECR

Registry

  • Amazon ECR Registry ๋Š” ๊ฐ ๊ณ„์ •๋งˆ๋‹ค ๋งŒ๋“ค ์ˆ˜ ์žˆ๊ณ , Registry ์•ˆ์— image repository ๋ฅผ ๋งŒ๋“ค์–ด์„œ image๋“ค์„ ์ €์žฅํ•  ์ˆ˜ ์žˆ๋‹ค

Authorization token

  • Amazon ECR registry์— ์ธ์ฆ๋œ AWS user๋งŒ์ด ECR์— image๋“ค์„ Push / Pull ํ•  ์ˆ˜ ์žˆ๋‹ค

Repository

  • Amazon ECR image repository์— Docker iamge ๋“ค์„ ๋ณด๊ด€ํ•  ์ˆ˜ ์žˆ๋‹ค

Repository policy

  • Repository์™€ image ๋“ค์— ๋Œ€ํ•œ ์ ‘๊ทผ ๊ถŒํ•œ์„ repository policy ๋กœ ๊ด€๋ฆฌ ํ•  ์ˆ˜ ์žˆ๋‹ค

Image

  • Repository์— Container image๋“ค์„ Push / Pull ํ•  ์ˆ˜ ์žˆ๋‹ค

Features of Amazon ECR

  • Lifecycle policy๋ฅผ ํ™œ์šฉํ•˜์—ฌ repository ๋‚ด์˜ image๋“ค์— ๋Œ€ํ•œ lifecycle ๊ด€๋ฆฌ๋ฅผ ํ•  ์ˆ˜ ์žˆ๋‹ค

    • ์ •์ฑ…์„ ์ƒ์„ฑํ•˜์—ฌ ์‚ฌ์šฉ๋˜์ง€ ์•Š๋Š” image ๋“ค์„ ์ œ๊ฑฐํ•  ์ˆ˜ ์žˆ๋‹ค

  • Image scanning ์„ ํ™œ์šฉํ•˜์—ฌ image ์˜ ์†Œํ”„ํŠธ์›จ์–ด ์ทจ์•ฝ์„ฑ ๋ฅผ ์‹๋ณ„ํ•˜๋Š” ๋ฐ ๋„์›€์„ ์ค„ ์ˆ˜ ์žˆ๋‹ค

Last updated