nerdctl icon indicating copy to clipboard operation
nerdctl copied to clipboard

Cannot push to Azure ACR

Open JWDobken opened this issue 1 year ago • 0 comments

Description

I try to push to a private Azure Container Registry (ACR) with nerdctl version 1.7.3.

Steps to reproduce the issue

Login to the registry:

$ az acr login --name=myregistry --expose-token | jq -r '.accessToken' | nerdctl login -u 00000000-0000-0000-0000-000000000000 --password-stdin myregistry.azurecr.io`
WARNING: You can perform manual login using the provided access token below, for example: 'docker login loginServer -u 00000000-0000-0000-0000-000000000000 -p accessToken'
Login Succeeded

Push to the registry:

nerdctl push myregistry/container:0.0.1
INFO[0000] pushing as a reduced-platform image (application/vnd.docker.distribution.manifest.v2+json, sha256:38190fe0c442313dc80c9dc1a8d8dfed69211f628e384c29fe34a68cd5ca867b) 
manifest-sha256:38190fe0c442313dc80c9dc1a8d8dfed69211f628e384c29fe34a68cd5ca867b: waiting        |--------------------------------------| 
config-sha256:76d9cb3ecd175bfb0a67849dfd3f1e7482c4db9778d2c1b10dc8e5a41f081a6f:   waiting        |--------------------------------------| 
elapsed: 7.1 s                                                                    total:   0.0 B (0.0 B/s)                                         
FATA[0007] push access denied, repository does not exist or may require authorization: server message: insufficient_scope: authorization failed 
Error: exit status 1

Describe the results you received and expected

I expected a succesful image push

What version of nerdctl are you using?

nerdctl version 1.7.3

Are you using a variant of nerdctl? (e.g., Rancher Desktop)

Rancher Desktop for macOS

Host information

Client: Namespace: default Debug Mode: false

Server: Server Version: v1.7.2 Storage Driver: overlayfs Logging Driver: json-file Cgroup Driver: cgroupfs Cgroup Version: 1 Plugins: Log: fluentd journald json-file syslog Storage: native overlayfs Security Options: seccomp Profile: builtin Kernel Version: 6.1.75-0-virt Operating System: Alpine Linux v3.18 OSType: linux Architecture: aarch64 CPUs: 8 Total Memory: 7.749GiB Name: lima-rancher-desktop ID: e0327975-ab65-4baa-87c6-fb5be4a7cbfa

JWDobken avatar Feb 26 '24 08:02 JWDobken