Skip to content

Cannot push to Azure ACR #2840

Closed
Closed

Description

@JWDobken

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

Activity

  1. Zheaoli commented on Jun 8, 2024

    @Zheaoli
    Member

    I can't reproduce the bug, would you mind providing more information?

    [root@manjusaka-garuda nerdctl]# ./_output/nerdctl pull ubuntu:23.04
    docker.io/library/ubuntu:23.04:                                                   resolved       |++++++++++++++++++++++++++++++++++++++| 
    index-sha256:5a828e28de105c3d7821c4442f0f5d1c52dc16acf4999d5f31a3bc0f03f06edd:    done           |++++++++++++++++++++++++++++++++++++++| 
    manifest-sha256:ea1285dffce8a938ef356908d1be741da594310c8dced79b870d66808cb12b0f: done           |++++++++++++++++++++++++++++++++++++++| 
    config-sha256:f4cdeba72b994748f5eb1f525a70a9cc553b66037ec37e23645fbf3f0f5c160d:   done           |++++++++++++++++++++++++++++++++++++++| 
    layer-sha256:6360b371721185fefbbad6763ab745900f1b2f7714570234473232dd575fc07f:    done           |++++++++++++++++++++++++++++++++++++++| 
    elapsed: 8.3 s                                                                    total:  25.6 M (3.1 MiB/s)                                       
    [root@manjusaka-garuda nerdctl]# ./_output/nerdctl tag ubuntu:23.04 elixirlinux.azurecr.io/elixirlinux:demo2
    [root@manjusaka-garuda nerdctl]# ./_output/nerdctl push elixirlinux.azurecr.io/elixirlinux:demo2
    INFO[0000] pushing as a reduced-platform image (application/vnd.oci.image.index.v1+json, sha256:6e0ab7b630464a353a99d9943786ab0c078f9a371963c292144cb8313e85392d) 
    index-sha256:6e0ab7b630464a353a99d9943786ab0c078f9a371963c292144cb8313e85392d:    done           |++++++++++++++++++++++++++++++++++++++| 
    manifest-sha256:ea1285dffce8a938ef356908d1be741da594310c8dced79b870d66808cb12b0f: done           |++++++++++++++++++++++++++++++++++++++| 
    config-sha256:f4cdeba72b994748f5eb1f525a70a9cc553b66037ec37e23645fbf3f0f5c160d:   done           |++++++++++++++++++++++++++++++++++++++| 
    elapsed: 5.2 s                                                             
    
  2. added
    help wanted
    on Jun 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedkind/unconfirmed-bug-claim

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions