Skip to content

[Bug]: container image pull does not work for Azure Container Registry even if logged in (401 Unauthorized) #254

@vnea

Description

@vnea

I have done the following

  • I have searched the existing issues
  • If possible, I've reproduced the issue using the 'main' branch of this project

Steps to reproduce

  1. Login to the Azure Regisry (I followed this documentation) :
TOKEN=$(az acr login --name myregistry --expose-token --output tsv --query accessToken)
container registry login myregistry.azurecr.io --username 00000000-0000-0000-0000-000000000000 --password-stdin <<< $TOKEN
  1. I got the message:
Login succeeded
  1. Try to pull an image:
container image pull myregistry.azurecr.io/api/dummy:latest

Current behavior

I got the follow error:

Error: internalError: "HTTP request to https://myregistry.azurecr.io/oauth2/token?client_id=containerization-registry-client&service=myregistry.azurecr.io&scope=repository:api/dummy:pull failed with response: 401 Unauthorized. No credentials found for host myregistry.azurecr.io"

Expected Behavior

The image should be pulled.

Environment

- OS: 15.5 (24F74)
- Xcode: N/A
- Container: container CLI version 0.2.0 (build: release, commit: 3b5c253)

Relevant log output

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions