Giter Site home page Giter Site logo

Comments (11)

gtardif avatar gtardif commented on September 21, 2024

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.

karolz-ms avatar karolz-ms commented on September 21, 2024

@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.

gtardif avatar gtardif commented on September 21, 2024

@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.

docker.zip

from cloud-integration-beta.

karolz-ms avatar karolz-ms commented on September 21, 2024

What I found (the following sequence assumes ACI Docker context is in use):

  1. docker logout azure + docker logout myregistry
  2. docker login azure
  3. docker run myregistry/myrepo using Docker CLI that shipped with Docker Edge/Win 2.3.5.1 --> error
  4. docker run myregistry/myrepo using attached Docker CLI from the above --> works without any warnings
  5. docker run myregistry/myrepo using Docker CLI that shipped with Docker Edge/Win 2.3.5.1 --> now works but with Could 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 ☺️ Curious what is the difference between that and Edge 2.3.5.1?

from cloud-integration-beta.

gtardif avatar gtardif commented on September 21, 2024

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.

gtardif avatar gtardif commented on September 21, 2024

@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.

karolz-ms avatar karolz-ms commented on September 21, 2024

@gtardif this build (2.3.6.0) is working for me! ☺️

from cloud-integration-beta.

BigMorty avatar BigMorty commented on September 21, 2024

Worked great for me also, thanks!!!

from cloud-integration-beta.

gtardif avatar gtardif commented on September 21, 2024

Glad to see this ! Thx for the feedback

from cloud-integration-beta.

gtardif avatar gtardif commented on September 21, 2024

This has been released now !

from cloud-integration-beta.

BigMorty avatar BigMorty commented on September 21, 2024

Awesome, thanks so much!

from cloud-integration-beta.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.