Skip to content

Error response from daemon: Get https://ghcr.io/v2/: denied #26832

Discussion options

You must be logged in to vote

I’m not sure what’s wrong here if the CR_PAT works locally it should work this way. Here are some ideas to try:

Reorder the command, docker login takes the server as the final argument but on linux it usually works fine. You could also use ${{ github.repository_owner }} instead of your username but again this doesn’t usually cause errors.

echo ${{ secrets.CR_PAT }} | docker login -u ${{ github.repository_owner }} --password-stdin ghcr.io

Try using the login-action which simplifies all of this.

- name: Login to GitHub Container Registry
        uses: docker/login-action@v1
        with:
          registry: ghcr.io
          username: ${{ github.repository_owner }}
          password: ${{ s…

Replies: 4 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@krebznet
Comment options

Answer selected
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Actions Build, test, and automate your deployment pipeline with world-class CI/CD Packages Host your dependencies, libraries, and production-ready code, right from your repository Question
4 participants