While using with the GitHub action I am getting Error response from daemon: Get "https://ghcr.io/v2/": denied: denied
I used the login command echo $CR_PAT | docker login ghcr.io -u $ghcr_user -password-stdin
While using with the GitHub action I am getting Error response from daemon: Get "https://ghcr.io/v2/": denied: denied
I used the login command echo $CR_PAT | docker login ghcr.io -u $ghcr_user -password-stdin
You may try logout and then login. Or even removing the docker credentials (at ~/.docker/config.json
in Linux) and then trying to login again.
This resolved the issue for me and many others
I believe the command you want should be:
That adds quoting to the variables and a second dash to the long arg. It also assumes those variables are defined.
That said, I tend to use the following in GitHub Actions for doing the login: