Giter Site home page Giter Site logo

Comments (6)

Hokutosei avatar Hokutosei commented on June 3, 2024 1

@karolz-ms great! that worked now :D

jeanepaul@DESKTOP-T3KIFDC MINGW64 ~
$ docker --context azurecontext ps -a
CONTAINER ID        IMAGE               COMMAND             STATUS              PORTS
agitated-lovelace   nginx                                   Running             20.195.0.***:80->80/tcp

jeanepaul@DESKTOP-T3KIFDC MINGW64 ~
$ docker context list
NAME                TYPE                DESCRIPTION                               DOCKER ENDPOINT                  KUBERNETES ENDPOINT                                                                       ORCHESTRATOR
azurecontext *      aci                 jp-research-group@southeastasia
default             moby                Current DOCKER_HOST based configuration   npipe:////./pipe/docker_engine   https://japaneast.azmk8s.io:443 (default)                                                 swarm

thank you!

from cloud-integration-beta.

chris-crone avatar chris-crone commented on June 3, 2024 1

Thanks for the report @Hokutosei and @karolz-ms for helping out!

Looks like we need some documentation on this, I'll add it to our backlog

from cloud-integration-beta.

karolz-ms avatar karolz-ms commented on June 3, 2024

@Hokutosei you need to do docker login azure before docker context create aci xxxx. Docker CLI does not have access to Azure CLI security tokens; it does not even require Azure CLI to be installed, they are independent.

from cloud-integration-beta.

Hokutosei avatar Hokutosei commented on June 3, 2024

@karolz-ms thank you for the reply. and I am sorry, I missed copying that log. I already did that, but still no luck 😔

jeanepaul@DESKTOP-T3KIFDC MINGW64 ~
$ docker login azure
login succeeded

jeanepaul@DESKTOP-T3KIFDC MINGW64 ~
$ docker context create aci azurecontext
no subscriptions found

also I tried passing the correct subscription-id

$ docker context create aci azurecontext --subscription-id 86bf3679-****
resources.GroupsClient#List: Failure responding to request: StatusCode=401 
-- Original Error: autorest/azure: Service returned an error. Status=401 Code="InvalidAuthenticationTokenTenant" Message="The access token is from the wrong issuer 'https://sts.windows.net/*****/'. 
It must match one of the tenants 'https://sts.windows.net/2f4a9838-****/,https://sts.windows.net/c879b447****/' associated with this subscription. Please use any authority (URL) from 'https://login.windows.net/2f4a9838****,https://login.windows.net/c879b447-*****' to get the token. 

Note, if the subscription is transferred to another tenant there is no impact to the services, but information about new tenant could take time to propagate (up to an hour). If you just transferred your subscription and see this error message, please try back later."

from cloud-integration-beta.

karolz-ms avatar karolz-ms commented on June 3, 2024

How about passing --tenant-id to docker login azure? See #8

from cloud-integration-beta.

gtardif avatar gtardif commented on June 3, 2024

The error message has now been made explicit for this particular case, so you users know they can use --tenant

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.