Comments (11)
This is happening on windows, using Docker Desktop with WSL2 integration. So far we have not been able to reproduce the issue.
from cloud-integration-beta.
@gtardif On Windows I was also able to use the access token from dockerAccessToken.json
to exchange the token into ACR token using curl, as described above. So the CLI has correct data to do the same.
Is there a way to get detailed trace from the CLI, to see exactly what it is doing while attempting to exchange the Azure access token for the ACR access token?
from cloud-integration-beta.
@karolz-ms you can unzip the docker cli attached here and invoke it directly instead of the one installed by Desktop.
I added traces to see exactly what it executes, and display the error in addition to the warning message Could not automatically login to xxx from your Azure login.
Basically he cli does 2 things :
- POST the same thing you tried with curl
- use the result and call
docker login myregistry
If any error happens, display the warning and continue, to let users maually login to ACR if their azure login does not allow access to the specified registry.
from cloud-integration-beta.
What I found (the following sequence assumes ACI Docker context is in use):
docker logout azure
+docker logout myregistry
docker login azure
docker run myregistry/myrepo
using Docker CLI that shipped with Docker Edge/Win 2.3.5.1 --> errordocker run myregistry/myrepo
using attached Docker CLI from the above --> works without any warningsdocker run myregistry/myrepo
using Docker CLI that shipped with Docker Edge/Win 2.3.5.1 --> now works but withCould not automatically login to xxx from your Azure login
warning
So let's just ship the implementation that you attached @gtardif and we can call it done
from cloud-integration-beta.
I suppose step 5 just works because it's using the login that was perfomed in step 4.
I don't see exactly what can make the diff, it may not be due to a code difference but using the binary from Desktop PATH instead of another one you installed manually. (but I can't reproduce the issue with the cli installed with Desktop either, and I don't see why this would make a difference ; no special permission or things like that).
Or it's another diff we introduced since Edge 2.3.5.1 that fixed it, but looking at changes I don't see any obvious candidate.
Anyway, I'll display the error message in addition to the current warning, so we can understand better what's going on in case of failure.
from cloud-integration-beta.
@karolz-ms You can try this Desktop build : https://desktop-stage.docker.com/win/edge/47514/Docker%20Desktop%20Installer.exe, that should be close to our release next week
from cloud-integration-beta.
@gtardif this build (2.3.6.0) is working for me!
from cloud-integration-beta.
Worked great for me also, thanks!!!
from cloud-integration-beta.
Glad to see this ! Thx for the feedback
from cloud-integration-beta.
This has been released now !
from cloud-integration-beta.
Awesome, thanks so much!
from cloud-integration-beta.
Related Issues (20)
- How to authenticate with private ACR registry? HOT 6
- Missing support to environment variables HOT 2
- unsupported Compose file version: 2.3 HOT 2
- Docker Login Azure issues HOT 3
- "docker logs --follow" output garbled HOT 4
- Images can't be listed when using an ACI context
- docker login azure @ WSL2: xdg-open executable file not found in $PATH HOT 1
- Support for service principal authentication HOT 5
- Support for Compose v2
- no subscriptions found HOT 6
- Docker Start/Stop Support
- How do I build an image when using an ACI context HOT 2
- Add the ability to connect Azure file shares via Docker Compose HOT 2
- WSL2 Azure Login not portable accross various WSL setups HOT 5
- Not able to install the script (install.sh) HOT 2
- Why aren't all the existing Docker commands and flags available with ACI HOT 7
- Cannot map container ports on ACI HOT 2
- Support for Runtime options with Memory, CPUs, and GPUs HOT 2
- Support for Azure account with multiple tenants HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cloud-integration-beta.