「[[マイクロソフト系技術情報 Wiki>http://techinfoofmicrosofttech.osscons.jp/]]」は、「[[Open棟梁Project>https://github.com/OpenTouryoProject/]]」,「[[OSSコンソーシアム .NET開発基盤部会>https://www.osscons.jp/dotNetDevelopmentInfrastructure/]]」によって運営されています。 -[[戻る>AzureのPaaS#i19a4534]] --Azure Container Registry --[[Microsoft Container Registry]] * 目次 [#tef69640] #contents *概要 [#f38ecbea] ACRと略されることが多い、AzureのContainer Registry -コンテナの置き場所(他のXKE / XKSにもコンテナ・レジストリはある) -ユーザの作成したプライベートなコンテナを登録する。 *詳細 [#xd71c04d] **CREATE [#ff91d762] [[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 [#y1ed40f4] 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 *参考 [#v9964560] -https://github.com/OpenTouryoProject/HubAndMsgSrv/blob/master/Hub/Edge/README2.md **Microsoft Learn [#h756d301] -Azure Container Registry --レジストリ認証オプション~ https://learn.microsoft.com/ja-jp/azure/container-registry/container-registry-authentication --クイックスタート - レジストリの作成 - Azure CLI~ https://learn.microsoft.com/ja-jp/azure/container-registry/container-registry-get-started-azure-cli ---- Tags: [[:クラウド]], [[:コンテナ]], [[:Azure]], [[:AKS]]