Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to access container in ghcr.io and container no longer in DockerHub since v5.1 #4444

Closed
jonesy1234 opened this issue Jul 4, 2023 · 10 comments
Assignees
Labels
bug Something isn't working

Comments

@jonesy1234
Copy link

Describe the bug

The container release to DockerHub has been removed in v5.1.0 - #4315 without an explanation why? I'm unable to pull the container from ghcr.io/super-linter/super-linter even after authenticating for public repo access.

Expected behaviour

Container is available in DockerHub

Steps to Reproduce

docker run ghcr.io/super-linter/super-linter:v5
Unable to find image 'ghcr.io/super-linter/super-linter:v5' locally
docker: Error response from daemon: denied.
See 'docker run --help'.

Logs

Additional context

Due to the time to pull a container we previously cached the container in out Self-Hosted Runner to make the super-linter process quicker for our developers.

@jonesy1234 jonesy1234 added the bug Something isn't working label Jul 4, 2023
@monotek
Copy link

monotek commented Jul 4, 2023

same here :(

1 similar comment
@cyri113
Copy link

cyri113 commented Jul 4, 2023

same here :(

@zkoppert
Copy link
Contributor

zkoppert commented Jul 5, 2023

👋🏻 Hey all, it looks like an organization security setting was making the ghcr.io/super-linter/super-linter package private. I didn't notice this as I have different permissions as a maintainer of the project. I have modified this to public which should fix the issue. Please let me know if that doesn't work.

@zkoppert zkoppert self-assigned this Jul 5, 2023
@GoetzGoerisch
Copy link

Thx, fixed it for me.

@jonesy1234
Copy link
Author

Can you also explain why you have stopped syncing to DockerHub? The PR doesn't explain why that action was taken at all?

@zkoppert
Copy link
Contributor

zkoppert commented Jul 5, 2023

@jonesy1234 Great question! I stopped syncing to DockerHub because I've been unable to obtain the GitHub account credentials to DockerHub which used to be taken care of by a previous maintainer who has since left GitHub.

If posting to DockerHub is more desirable, I'd be interested to know and could post under a personal account.

@kaaloo
Copy link

kaaloo commented Sep 14, 2023

Hi @zkoppert , it seems the image might have been flipped back to private. I've been seeing this for a week or so:

❯ docker pull ghcr.io/super-linter/super-linter:v5
Error response from daemon: Head "https://ghcr.io/v2/super-linter/super-linter/manifests/v5": denied: denied

@zkoppert
Copy link
Contributor

Screenshot 2023-09-14 at 3 20 25 PM
The latest v5 was posted 3 days ago and has 4500+ downloads so I don't think others are experiencing this issue. I was unable to reproduce locally as well.

@zkoppert
Copy link
Contributor

@kaaloo Are you behind any firewalls that might be blocking ghcr.io?

@kaaloo
Copy link

kaaloo commented Sep 17, 2023

Hi @zkoppert thank you for jumping in! I've traced the problem to the existence of a ghcr.io auth token in ~/.docker/config.json. In our self-hosted GitHub runners, the origin of this token is very certainly because in one of our workflows we run log in to ghcr.io using the supplied GITHUB_TOKEN in order to push a private image to ghcr.io. Perhaps the token is expired and unfortunately this blocks docker from pulling a public image like superlinter? Not quite sure but we likely need to run this part of the workflow in a container, especially since we want to use these runners for other repositories that might need to push their own private images to ghcr.io. Thanks again for your help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants