Azure / Azure/azure-cli

`az container create` throwing `ERROR: (RegistryErrorResponse) An error response is received from the docker registry 'index.docker.io'. Please retry later.`

Open
#29,300 24 comments 12 reactions 0 assignees View on GitHub
act-observability-squad Auto-Assign bug Container Instances customer-reported Service Attention
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

### Describe the bug

When trying to create a container using the Azure CLI Container Create command, we get a `RegistryErrorResponse` error.
This is trying to deploy an image from an Azure private registry.

This was working yesterday with the same version as today: 2.61.0

I can supply more of my own configuration on request if necessary.

### Related command

`az container create --resource-group $RESOURCE_GROUP --file $ACI_FILE`

### Errors

ERROR: (RegistryErrorResponse) An error response is received from the docker registry 'index.docker.io'. Please retry later.

### Issue script & Debug output

Unable to provide this at this time.

### Expected behavior

The container should be created.

### Environment Summary

azure-cli 2.61.0

core 2.61.0
telemetry 1.1.0

Extensions:
azure-devops 1.0.1

Dependencies:
msal 1.28.0
azure-mgmt-resource 23.1.1

Python location '/opt/az/bin/python3'
Extensions directory '/opt/az/azcliextensions'

Python (Linux) 3.11.8 (main, May 16 2024, 03:47:28) [GCC 11.4.0]

### Additional context

Another person having the exact same issue since today with a public registry.

```
- task: AzureCLI@2
name: CreateContainer
displayName: Create container
inputs:
azureSubscription: ${{ parameters.subscription }}
scriptType: bash
scriptLocation: inlineScript
inlineScript: |
az container create \
--resource-group '${{ parameters.resourceGroup }}' \
--name '${{ parameters.name }}' \
--image 'docker.io/mockoon/cli:latest' \
--ports ${{ parameters.port }} \
--location '${{ parameters.location }}' \
--dns-name-label '${{ parameters.name }}' \
--command-line "mockoon-cli start --data '$(publicUrl)' --port ${{ parameters.port }}"`
```
[link](https://stackoverflow.com/questions/78697421/unable-to-create-an-azure-container-instance-using-image-from-docker-io)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.