-
Notifications
You must be signed in to change notification settings - Fork 35
Support Azure Container Registry (Azure AD login) #189
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, yo 8000 u agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
For me it works. I had to create a symlink |
I'm on Windows, but I'll try creating a .dockercfg directly in the user profile directory (which looks to be the equivalent of what you did) and see if that helps. |
Nope.. with c:\users\dgardiner.dockercfg having the same contents as C:\Users\dgardiner.docker\config.json it still fails.
|
The function to look up the config comes from It looks like a bunch of files are checked, but they require either the |
I'll test setting these and let you know the results |
Ok.. so I got a little further after setting Instead now when I try and push, I get the following:
The |
I'm not familiar with |
The az acr login just invokes docker login with an EMPTY guid username and the token that you can obtain through ❯ cat ~/.docker/config.json | jq
{
"auths": {
"sajay.azurecr.io": {
"auth": "MDAwMDAwMDAtMDAwMC0wMDAwLTAwMDAtMDAwMDAwMDAwMDAwOg==",
"identitytoken": "eyJhbGciOiJSUzI..."
}
} The auth is the username which is base64 encoded for |
I followed the instructions at https://docs.microsoft.com/en-us/azure/container-registry/container-registry-authentication#individual-login-with-azure-ad to log in to an Azure Container Registry.
eg.
That updates Docker's config.json like so:
With this in place,
docker pull
ordocker push
work correctly, but dobi fails with:The text was updated successfully, but these errors were encountered: