Asantha Thilina
Asantha Thilina

Reputation: 647

Azure Cli keep giving docker deamon running not supported error

I been trying to deploy docker with azure private registry, i been following below tutorial and when i tried az acr login -n command azure shell keeps giving me This command requires running the docker daemon, which is not supported in Azure Cloud Shell

https://learn.microsoft.com/en-us/azure/container-registry/container-registry-get-started-azure-cli

how could i enable docker daemon in azure cli

Upvotes: 3

Views: 5875

Answers (2)

Vpfai
Vpfai

Reputation: 11

I had the same issue, then I tried to login from Shell console locally from VM and it was successful.

Steps:

  1. Docker login <loginServer>

  2. Visit locally your <ResourcesGroup> from Azure Manager and find passwords, where you'll see current login and password

  3. Finish your login with login and password data

To push image to Registry use CLI

Upvotes: 1

Nancy Xiong
Nancy Xiong

Reputation: 28284

Instead of using the Azure Cloud Shell, you could install Docker locally because the Azure Cloud Shell doesn't include all required Docker components (the docker daemon), you can't use the Cloud Shell for this quickstart. Docker provides packages that easily configure Docker on any macOS, Windows, or Linux system.

Then you also need to install Azure CLI locally.

Upvotes: 4

Related Questions