Describe the bug
I'm attempting to authenticate to my ACR, following these instructions and when I execute az acr login --name myregistry I get an error suggesting Docker is not installed, which is incorrect:
# az acr login --name xxxxxx.azurecr.io
Please verify if docker is installed.
Both az and docker are up to date.
I'd be fine using docker login xxxxxx.azurecr.io but I can't get that to work with my Azure portal credentials either (I'm a subscription owner, and I've tried adding _ACRPull_ role just in case).
Environment summary
OS: MacOS 10.14.3 (Mojave)
Docker: Docker Desktop 2.0.0.3 stable, engine 18.09.2
az install method: homebrew
azure-cli: 2.0.61
acr: 2.2.3
Python: (Linux) 3.6.4
Shell: GNU bash 5.0.3(1)-release (x86_64-apple-darwin18.2.0)
# which az
/usr/local/bin/az
# docker version
Client: Docker Engine - Community
Version: 18.09.2
API version: 1.39
Go version: go1.10.8
Git commit: 6247962
Built: Sun Feb 10 04:12:39 2019
OS/Arch: darwin/amd64
Experimental: false
Server: Docker Engine - Community
Engine:
Version: 18.09.2
API version: 1.39 (minimum version 1.12)
Go version: go1.10.6
Git commit: 6247962
Built: Sun Feb 10 04:13:06 2019
OS/Arch: linux/amd64
Experimental: false
# docker info
Containers: 0
Running: 0
Paused: 0
Stopped: 0
Images: 68
Server Version: 18.09.2
Storage Driver: overlay2
Backing Filesystem: extfs
Supports d_type: true
Native Overlay Diff: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: bridge host macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 9754871865f7fe2f4e74d43e2fc7ccd237edcbce
runc version: 09c8266bf2fcf9519a651b04ae54c967b9ab86ec
init version: fec3683
Security Options:
seccomp
Profile: default
Kernel Version: 4.9.125-linuxkit
Operating System: Docker for Mac
OSType: linux
Architecture: x86_64
CPUs: 4
Total Memory: 1.952GiB
Name: linuxkit-025000000001
ID: IHAE:LXG4:QLOS:76VE:XXAD:PNST:NDZW:GS6C:OHVT:5CTJ:6TD2:237Q
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): true
File Descriptors: 27
Goroutines: 54
System Time: 2019-04-02T19:35:33.177404Z
EventsListeners: 2
HTTP Proxy: gateway.docker.internal:3128
HTTPS Proxy: gateway.docker.internal:3129
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false
Product License: Community Engine
@dluc Could you provide a debug trace az acr login -n myregistry --debug, or send it to [email protected]? Thanks.
Hi, I'm hitting the same problem (azure-cli installed via snap)
@yfried the snap package of Azure CLI is incredibly outdated (19 January 2018). I would highly recommend installing via one of the Linux methods outlined here: https://docs.microsoft.com/en-us/cli/azure/install-azure-cli?view=azure-cli-latest.
cc/ @marstr
Thank you. Already figured this out. Is there any chance you guys can make
the snap package work? Snap is extremely convenient.
On Mon, Jun 24, 2019, 20:09 Travis Prescott notifications@github.com
wrote:
@yfried https://github.com/yfried the snap package of Azure CLI is
incredibly outdated (19 January 2018). I would highly recommend installing
via one of the Linux methods outlined here:
https://docs.microsoft.com/en-us/cli/azure/install-azure-cli?view=azure-cli-latest
.cc/ @marstr https://github.com/marstr
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/Azure/azure-cli/issues/8960?email_source=notifications&email_token=ABIQQPPQCRFP3YDYZFSUQR3P4D5TBA5CNFSM4HDD6FU2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYNS3JA#issuecomment-505097636,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABIQQPKIKVH2OFCOZJTE643P4D5TBANCNFSM4HDD6FUQ
.
@dluc, we are closing this issue, but feel free to reactivate if you can provide a debug trace az acr login -n myregistry --debug
Command arguments: ['acr', 'login', '--name', 'volterra', '--debug']
Event: Cli.PreExecute []
Event: CommandParser.OnGlobalArgumentsCreate [<function CLILogging.on_global_arguments at 0x7f0e41ec1d90>, <function OutputProducer.on_global_arguments at 0x7f0e41aebb70>, <function CLIQuery.on_global_arguments at 0x7f0e41ed87b8>]
Event: CommandInvoker.OnPreCommandTableCreate [<function CLILogging.remove_logger_flags at 0x7f0e41ec1e18>]
Installed command modules ['acr', 'acs', 'advisor', 'appservice', 'backup', 'batch', 'batchai', 'billing', 'cdn', 'cloud', 'cognitiveservices', 'configure', 'consumption', 'container', 'cosmosdb', 'dla', 'dls', 'eventgrid', 'extension', 'feedback', 'find', 'interactive', 'iot', 'keyvault', 'lab', 'monitor', 'network', 'profile', 'rdbms', 'redis', 'reservations', 'resource', 'role', 'servicefabric', 'sql', 'storage', 'vm']
Loaded module 'acr' in 0.003 seconds.
Loaded module 'acs' in 0.003 seconds.
Loaded module 'advisor' in 0.002 seconds.
Loaded module 'appservice' in 0.007 seconds.
Loaded module 'backup' in 0.004 seconds.
Event: CommandLoader.OnLoadCommandTable []
Loaded module 'batch' in 0.017 seconds.
Loaded module 'batchai' in 0.003 seconds.
Loaded module 'billing' in 0.002 seconds.
Event: CommandLoader.OnLoadCommandTable []
Loaded module 'cdn' in 0.003 seconds.
Loaded module 'cloud' in 0.455 seconds.
Loaded module 'cognitiveservices' in 0.002 seconds.
Loaded module 'configure' in 0.001 seconds.
Loaded module 'consumption' in 0.003 seconds.
Loaded module 'container' in 0.002 seconds.
Loaded module 'cosmosdb' in 0.005 seconds.
Loaded module 'dla' in 0.087 seconds.
Loaded module 'dls' in 0.003 seconds.
Loaded module 'eventgrid' in 0.002 seconds.
Loaded module 'extension' in 0.001 seconds.
Loaded module 'feedback' in 0.001 seconds.
Loaded module 'find' in 0.001 seconds.
Loaded module 'interactive' in 0.000 seconds.
Loaded module 'iot' in 0.004 seconds.
Loaded module 'keyvault' in 0.006 seconds.
Loaded module 'lab' in 0.148 seconds.
Loaded module 'monitor' in 0.006 seconds.
Loaded module 'network' in 0.029 seconds.
Loaded module 'profile' in 0.010 seconds.
Loaded module 'rdbms' in 0.004 seconds.
Loaded module 'redis' in 0.003 seconds.
Loaded module 'reservations' in 0.002 seconds.
Loaded module 'resource' in 0.007 seconds.
Loaded module 'role' in 0.003 seconds.
Loaded module 'servicefabric' in 0.002 seconds.
Loaded module 'sql' in 0.005 seconds.
Event: CommandLoader.OnLoadCommandTable []
Loaded module 'storage' in 0.077 seconds.
Loaded module 'vm' in 0.035 seconds.
Loaded all modules in 0.948 seconds. (note: there's always an overhead with the first module loaded)
Extensions directory: '/home/gauravmukherjee/snap/azure-cli/7/.azure/cliextensions'
Event: CommandInvoker.OnPostCommandTableCreate [<function add_id_parameters at 0x7f0e419e8840>]
Event: CommandInvoker.OnCommandTableLoaded []
Event: CommandInvoker.OnPreParseArgs [<function _documentdb_deprecate at 0x7f0e41f49620>]
Event: CommandInvoker.OnPostParseArgs [<function OutputProducer.handle_output_argument at 0x7f0e41aebbf8>, <function CLIQuery.handle_query_parameter at 0x7f0e41ed8840>]
Getting management service client client_type=ContainerRegistryManagementClient
@yugangw-msft Here is --debug trace. I am also using snap package for docker
Most helpful comment
@yfried the snap package of Azure CLI is incredibly outdated (19 January 2018). I would highly recommend installing via one of the Linux methods outlined here: https://docs.microsoft.com/en-us/cli/azure/install-azure-cli?view=azure-cli-latest.
cc/ @marstr