<目次>
(1) Azure Machine Learningで「Failed to pull Docker image」が出る原因と対処法について
(1-1) エラー概要
(1-2) 原因
(1-3) 対策
(1) Azure Machine Learningで「Failed to pull Docker image」が出る原因と対処法について
(1-1) エラー概要
Failed to pull Docker image rainbowmlcontanerregistry.azurecr.io/azureml/azureml_af5b98a52d31bc5b17b6f7656a9567d8. This error may occur because the compute could not authenticate with the Docker registry to pull the image. If using ACR please ensure the ACR has Admin user enabled or a Managed Identity with `AcrPull` access to the ACR is assigned to the compute. If the ACR Admin user's password was changed recently it may be necessary to synchronize the workspace keys.
![](https://rainbow-engine.com/wp-content/uploads/2023/04/RP-IT0710_Azure_ML_Failed_to_pull_Docker_image/RP-IT0710_211_1_Azure_MachineLearning_HelloWorld.jpg)
(1-2) 原因
●原因①
●原因②
(1-3) 対策
●原因①の対策:管理者ユーザーの有効化
![](https://rainbow-engine.com/wp-content/uploads/2023/04/RP-IT0710_Azure_ML_Failed_to_pull_Docker_image/RP-IT0710_231_1_Azure_MachineLearning_HelloWorld.jpg)
![](https://rainbow-engine.com/wp-content/uploads/2023/04/RP-IT0710_Azure_ML_Failed_to_pull_Docker_image/RP-IT0710_231_2_Azure_MachineLearning_HelloWorld.jpg)
●原因②の対策:adminユーザーのパスワードがMLのワークスペースと同期させる
![](https://rainbow-engine.com/wp-content/uploads/2023/04/RP-IT0710_Azure_ML_Failed_to_pull_Docker_image/RP-IT0710_232_0_Azure_MachineLearning_HelloWorld.jpg)
$ az login
![](https://rainbow-engine.com/wp-content/uploads/2023/04/RP-IT0710_Azure_ML_Failed_to_pull_Docker_image/RP-IT0710_232_1_Azure_MachineLearning_HelloWorld.jpg)
![](https://rainbow-engine.com/wp-content/uploads/2023/04/RP-IT0710_Azure_ML_Failed_to_pull_Docker_image/RP-IT0710_232_3_Azure_MachineLearning_HelloWorld.jpg)
![](https://rainbow-engine.com/wp-content/uploads/2023/04/RP-IT0710_Azure_ML_Failed_to_pull_Docker_image/RP-IT0710_232_4_Azure_MachineLearning_HelloWorld.jpg)
[ { "cloudName": "AzureCloud", "homeTenantId": "XXXXX", "id": " XXXXX ", "isDefault": true, "managedByTenants": [], "name": "rainbow-engine-dev", "state": "Enabled", "tenantId": " XXXXX ", "user": { "name": " XXXXX @ XXXXX.com", "type": "user" } } ]
az ml workspace sync-keys --name --resource-group
az ml workspace sync-keys --name 'rainbow-ml-workspace' --resource-group 'rainbow-machine-learning'
![](https://rainbow-engine.com/wp-content/uploads/2023/04/RP-IT0710_Azure_ML_Failed_to_pull_Docker_image/RP-IT0710_232_5_Azure_MachineLearning_HelloWorld.jpg)
Waiting for the workspace keys sync. Done.
●結果確認
![](https://rainbow-engine.com/wp-content/uploads/2023/04/RP-IT0710_Azure_ML_Failed_to_pull_Docker_image/RP-IT0710_233_Azure_MachineLearning_HelloWorld.jpg)