0
0

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 1 year has passed since last update.

Alibaba Container Registry(ACR)のはじめ方

Posted at

はじめに

ACRを使うに当たって、少し躓いたので備忘録として残しておきます。

1. ACRのパスワード作成

ACRのインスタンスメニューから「パスワードの設定」が行えます。
image.png

2. ACRログイン

以下のコマンドを入力。パスワードを要求されたら、事前に作成したパスワードを入力します。

docker login --username=<username> <acr_instance_name>-registry.ap-northeast-1.cr.aliyuncs.com

3. イメージのビルドとプッシュ

# 1. DockerfileからビルドしてPushする場合
docker build <path/to/Dockerfile> -t <acr_instance_name>-registry.ap-northeast-1.cr.aliyuncs.com/<namespace>/<image_name>:<tag>
# 2. 既存のイメージのタグを変えてPushする場合
docker tag <image_id> <acr_instance_name>-registry.ap-northeast-1.cr.aliyuncs.com/<namespace>/<image_name>:<tag>
# Push
docker push <acr_instance_name>-registry.ap-northeast-1.cr.aliyuncs.com/<namespace>/<image_name>:<tag>
0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?