-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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”, you 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
'az acr login' requires Docker to be installed #9442
Comments
we had the same issue but turns out |
@bergmeister - ACR build doesn't require docker login. You only need to run |
@bergmeister are you unblocked and can we close this issue? |
Cannot comment on it since I wrote down already the PoC report for the project that this was targeted. |
/cc @dlepow |
We've had similar pains in actually getting docker login tokens. On AWS, the ECR login provides a token, whereas on ACR, it attempts to login for you automatically, which isn't helpful if you don't have docker installed. A nasty workaround is to get a refresh token ourselves (some elements of jenkins scripted pipeline included)
This allows you to do:
Would be nice to be able to get this in a simple way (this allows the admin password to remain disabled, which I prefer) |
So to address the ask here, maybe |
@yugangw-msft Instead of outputting a |
@noamichael, the command outputted will have the token that you can grep with. @Wwwsylvia, please pick up this issue after done with CLI ones. Let me know if you have any questions |
Is your feature request related to a problem? Please describe.
For offloading the Docker build to the cloud, we want to use
az acr build
but in order to authenticate, we wanted to use the registry credentials that are used inaz acr login
but it seems this command requiresDocker
to be installed, which we do not want. Now we need to create an Endpoint in Azure DevOps to authenticate to Azure. To me the whole point of the registry credentials was that one could interact with it without the complexity of Azure authentication. Installing Docker on a build machine is not something nice, as the Docker installation makes quite a lot of changes to the system and for the purpose of building Docker images in the cloud, I do not want to have to install Docker on our on-premise build agents.Describe the solution you'd like
Docker should not be required for authentication purposes of being able to do
az acr build
Describe alternatives you've considered
We will have to install an endpoint in Azure DevOps to authenticate the CLI to our registry in Azure.
Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: