The image 'microsoft/azure-vote-front:cosmosdb' in container group 'aci-demo' is not accessible.

るしぇるしぇ 21 Reputation points
2021-09-09T09:29:02.31+00:00

When I tried with the following learning path, an error occurred.

I contacted you from the feedback of the learning pass, but there is no response.

Please tell me how to resolve the error.

https://learn.microsoft.com/en-us/learn/modules/run-docker-with-azure-container-instances/4-use-environment-variables

〇Applicable part of the learning pass

Deploy a container that works with your database
Here you'll create an Azure container instance that can read from and write records to your Azure Cosmos DB instance.

The two environment variables you created in the last part, COSMOS_DB_ENDPOINT and COSMOS_DB_MASTERKEY, hold the values you need to connect to the Azure Cosmos DB instance.

Run the following az container create command to create the container.

Azure CLI

Copy
az container create \
--resource-group learn-deploy-aci-rg \
--name aci-demo \
--image mcr.microsoft.com/azuredocs/azure-vote-front:cosmosdb \
--ip-address Public \
--location eastus \
--environment-variables \
COSMOS_DB_ENDPOINT=$COSMOS_DB_ENDPOINT \
COSMOS_DB_MASTERKEY=$COSMOS_DB_MASTERKEY

〇Error details
beautenoble1290@Azure:~$ az container create \

--resource-group learn-deploy-aci-rg \
--name aci-demo \
--image microsoft/azure-vote-front:cosmosdb \
--ip-address Public \
--location eastus \
--environment-variables \
COSMOS_DB_ENDPOINT=$COSMOS_DB_ENDPOINT \
COSMOS_DB_MASTERKEY=$COSMOS_DB_MASTERKEY

The image 'microsoft/azure-vote-front:cosmosdb' in container group 'aci-demo' is not accessible. Please check the image and registry credential.

Azure Container Instances
Azure Container Instances
An Azure service that provides customers with a serverless container experience.
713 questions
0 comments No comments
{count} votes

Accepted answer
  1. shiva patpi 13,256 Reputation points Microsoft Employee
    2021-09-10T20:24:09.727+00:00

    Hello @るしぇるしぇ ,
    From the command which you have pasted for the --image option you are using microsoft/azure-vote-front:cosmosdb instead of mcr.microsoft.com/azuredocs/azure-vote-front:cosmosdb . Can you try out with the complete path ?

    I just tried and it went through successfully

    131167-image.png

    Regards,
    Shiva.

    1 person found this answer helpful.
    0 comments No comments

2 additional answers

Sort by: Most helpful
  1. るしぇるしぇ 21 Reputation points
    2021-09-11T09:21:14.113+00:00

    Hi,Shiva,
    I tried as you say and the problem was solved
    Thank you for your answer.

    0 comments No comments

  2. Recep SELLİ 0 Reputation points
    2024-10-17T12:52:51.43+00:00

    Hi,

    I got the similar error like below.

    `(InaccessibleImage) The image 'mcr.microsoft.com/azuredocs/azure-vote-front:v2' in container group 'aci-demo' is not accessible. Please check the image and registry credential.

    Code: InaccessibleImage

    Message: The image 'mcr.microsoft.com/azuredocs/azure-vote-front:v2' in container group 'aci-demo' is not accessible. Please check the image and registry credential.`

    Does anyone know to solve this issue?


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.