1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

【AWS】ECR に Docker の image を push する

Posted at

はじめに

ECR に Docker の image を build して push するまでの手順を記します。

1. image の build

docker build -t {ECRのリポジトリ名} .

2. image の push

  1. で build した image にタグ付
docker tag {ECRのリポジトリ名}:latest {ECR の URI(xxxxxxxxxx.dkr.ecr.ap-northeast-1.amazonaws.com/リポジトリ名)}

ECR にログイン

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

ECR に push

docker push xxxxxxxxx.dkr.ecr.ap-northeast-1.amazonaws.com/リポジトリ名
1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?