How to create an Azure Container Instance using Docker image

nicola 0 Reputation points
2024-09-24T09:26:06.46+00:00

Good morning,

I want to know how to create an Azure Container Instance using a custom template that use a docker repository.

Since yesterday I have created ACI using a public repository but now I need to create again this ACI and I encounter this error: An error response is received from the docker registry 'index.docker.io'. Please retry later.

How could I solve this problem?

Thanks in advance

Nicola B.

Azure Container Instances
Azure Container Instances
An Azure service that provides customers with a serverless container experience.
708 questions
{count} votes

1 answer

Sort by: Most helpful
  1. anashetty 335 Reputation points Microsoft Vendor
    2024-09-25T16:57:43.98+00:00

    Hi nicola,

    Welcome to the Microsoft Q&A Platform! Thank you for asking your question here.The error might be a temporary issue with Docker Hub, waiting a few minutes and retrying might resolve it. please retry once again.Please verify that the repository name is correct and accessible publicly.

    The most common cause of the error is rate limiting by Docker Hub. Ensure that you're not hitting the rate limit for unauthenticated requests. You can refer to this document for more information regarding rate limits and how to check it https://docs.docker.com/docker-hub/download-rate-limit/

    If you're using a custom template, ensure its correctly structured for a public Docker repository and deploy the template via CLI: For example

    resources:
    - name: myaci
      type: Microsoft.ContainerInstance/containerGroups
      apiVersion: '2021-07-01'
      location: <location>
      properties:
        containers:
        - name: nginx
          properties:
            image: nginx:latest
            resources:
              requests:
                cpu: 1
                memoryInGB: 1.5
            ports:
            - port: 80
        osType: Linux
        ipAddress:
          type: Public
          ports:
          - protocol: tcp
            port: 80
    

    You can create an Azure Container Instance using a custom template.
    Please refer to this documentation https://learn.microsoft.com/en-us/azure/container-instances/container-instances-quickstart-template

    If you have any further queries, please do let us know.

    If the answer is helpful, please click "Accept Answer" and "Upvote it."

    User's image


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.