マイクロソフト系技術情報 Wiki」は、「Open棟梁Project」,「OSSコンソーシアム .NET開発基盤部会」によって運営されています。

目次

概要

ACRと略されることが多い、AzureのContainer Registry

詳細

CREATE

Azure Cloud Shellで実行する例

hmsRgName=HmsRG
AcrName=osscjpdevinfra
az acr create --name $AcrName --resource-group $hmsRgName --sku Basic
RegistryName=$(az acr show --name $AcrName --query loginServer --output tsv)
echo $RegistryName

TEST

CMDで実行する例

az login
set AcrName=osscjpdevinfra
az acr show --name %AcrName% --query loginServer --output tsv
for /f "usebackq delims=" %A in (`az acr show --name %AcrName% --query loginServer --output tsv`) do set RegistryName=%A
set RegistryName
echo %RegistryName%
az acr login --name %RegistryName%
docker pull mcr.microsoft.com/hello-world
docker tag mcr.microsoft.com/hello-world %RegistryName%/hello-world:v1
docker push %RegistryName%/hello-world:v1
az acr repository list --name %RegistryName% --output table
az acr repository show-tags --name %RegistryName% --repository hello-world --output table

参考

Microsoft Learn


Tags: :クラウド, :コンテナ, :Azure, :AKS


トップ   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS