https://learn.microsoft.com/ja-jp/azure/container-registry/container-registry-get-started-azure-cli
-- 1. 前作業
az login --use-device-code
az account show
az version
az configure --list-defaults
az configure --defaults location=japaneast
az configure --list-defaults
az group create \
--name rg9999999 \
--location japaneast
az group list
az upgrade
-- 2. コンテナー レジストリの作成
az acr create \
--resource-group rg9999999 \
--name registry01 \
--sku Basic
az acr list \
--resource-group rg9999999
-- 3. レジストリへのログイン
security -v unlock-keychain ~/Library/Keychains/login.keychain-db
az acr login \
--name registry01
-- 4. レジストリにイメージをプッシュする
docker pull mcr.microsoft.com/hello-world
docker images
docker tag mcr.microsoft.com/hello-world registry01.azurecr.io/hello-world:v1
docker push registry01.azurecr.io/hello-world:v1
docker rmi registry01.azurecr.io/hello-world:v1
-- 5. コンテナー イメージの一覧表示
az acr repository list \
--name registry01 \
--output table
az acr repository show-tags \
--name registry01 \
--repository hello-world \
--output table
-- 6. レジストリからイメージを実行する
docker run registry01.azurecr.io/hello-world:v1
-- 7. クリーンアップ
az acr delete \
--name registry01 \
--yes
az group list
az group delete \
--name rg9999999 \
--yes