Open sfirke opened 2 years ago
I figured this out by reading this issue, then this pull request and then inferring the flag I needed, --cloud-name
:
docker login azure --cloud-name AzureUSGovernment
After I logged in again that way, I could create a context.
That PR notes "This PR does not include documentation changes" - it would be helpful if this was documented somewhere, I couldn't find it anywhere on Azure or Docker docs.
Actually I suppose I should leave this open until it's addressed via documentation fix.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue has been automatically closed because it had not recent activity during the stale period.
Description
When I run
docker context create aci azurecontext
, I get the response "no subscriptions found". I'm able to create new containers withaz container create
, andaz account list -o table
shows my subscription:Steps to reproduce the issue: 1.Run
docker context create aci azurecontext
Describe the results you received:
Describe the results you expected: The creation of a context into which I could deploy containers.
Additional information you deem important (e.g. issue happens only occasionally): I'm on the Azure Gov Cloud. I tried passing my
--tenant-id
and--subscription-id
directly in thedocker context create aci
command, same result. This is on Windows, with Docker Desktop (but I'm using the command prompt).Output of
docker-compose --version
:Output of
docker version
:Output of
docker context show
:You can also run
docker context inspect context-name
to give us more details but don't forget to remove sensitive content.Output of
docker info
:Additional environment details (AWS ECS, Azure ACI, local, etc.):