Problem
After performing a login to the container registry: az acr login --name <acrName>
acr says "Please verify if docker daemon is running properly." despite docker daemon running.
Suspected cause
The root cause of this issue seems to be that acr/custom.py tries to run docker ps which needs elevated rights on some systems. So the command returns a non-zero error and throws an exception.
So a solution for the cli might be to provide a better warning.
A workaround/solution for people encountering this issue is to run the command with sudo:
sudo az acr login --name <acrName>
Environment summary
Install Method: apt-get
azure-cli (2.0.22)
acr (2.0.16)
Problem
After performing a login to the container registry:
az acr login --name <acrName>acr says "Please verify if docker daemon is running properly." despite docker daemon running.
Suspected cause
The root cause of this issue seems to be that acr/custom.py tries to run
docker pswhich needs elevated rights on some systems. So the command returns a non-zero error and throws an exception.So a solution for the cli might be to provide a better warning.
A workaround/solution for people encountering this issue is to run the command with
sudo:sudo az acr login --name <acrName>Environment summary
Install Method: apt-get
azure-cli (2.0.22)
acr (2.0.16)