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 pull or run docker image #27

Closed
Guts opened this issue Aug 31, 2023 · 23 comments
Closed

Unable to pull or run docker image #27

Guts opened this issue Aug 31, 2023 · 23 comments

Comments

@Guts
Copy link

Guts commented Aug 31, 2023

Running docker commands as copied from readme:

> docker run -p 80:8080 ghcr.io/psf/httpbin
Unable to find image 'ghcr.io/psf/httpbin:latest' locally
docker: Error response from daemon: Head "https://ghcr.io/v2/psf/httpbin/manifests/latest": unauthorized.
See 'docker run --help'.
> docker pull ghcr.io/psf/httpbin
Using default tag: latest
Error response from daemon: Head "https://ghcr.io/v2/psf/httpbin/manifests/latest": unauthorized

Environment:

Ubuntu 22.04.x up to date

> docker --version
Docker version 24.0.5, build ced0996
@Smeedy
Copy link

Smeedy commented Sep 18, 2023

You need to do a docker login first using a Personal Access Token. See this page on Github.

But even so, the pull itself will give a denied so I think there's something on the permissions with this particular image which the author needs to fix since I am able to pull other public images from ghcr.io.

$ echo $CR_PAT | docker login ghcr.io -u smeedy --password-stdin
Login Succeeded
$ docker pull ghcr.io/psf/httpbin

Using default tag: latest
Error response from daemon: denied

@Guts
Copy link
Author

Guts commented Sep 21, 2023

Thanks @Smeedy.

So the image is not meant to be publicly used without authentication (quota)?

@edsu
Copy link

edsu commented Sep 22, 2023

I'm seeing Error response from daemon: denied after having logged in with a token:

$ docker login ghcr.io -u edsu
$ docker pull ghcr.io/psf/httpbin
Using default tag: latest
Error response from daemon: denied

@exhuma
Copy link

exhuma commented Sep 28, 2023

@kevin1024 The image is currently not available publicly on ghcr.io. Can something be done with the permissions of the registry? If not, we may need to shift back to docker-hub.

@exhuma
Copy link

exhuma commented Sep 28, 2023

Thanks @Smeedy.

So the image is not meant to be publicly used without authentication (quota)?

I don't think it's intentional. The deployment/publishing procedure was recently updated with increased automation. As we currently can't push to the original "Kenneth Reitz" namespace we shifted over to ghcr.io. We may need to revise that decision if ghcr.io turns out to be problematic for public hosting.

Note: I am not a maintainer of the project but I am the author of the PR which is responsible for this change.

@Guts
Copy link
Author

Guts commented Sep 28, 2023

Thanks you for your inputs, that helps to wait 😉.

@sambercovici
Copy link

Can ghcr support accessing images without authenticating?

@Guts
Copy link
Author

Guts commented Oct 18, 2023

Can ghcr support accessing images without authenticating?

I'm pretty sure it does. For example, I'm intensively using GDAL images which have been moved from dockerhub to GHCR: https://github.com/OSGeo/gdal/tree/master/docker

@sambercovici
Copy link

Can ghcr support accessing images without authenticating?

I'm pretty sure it does. For example, I'm intensively using GDAL images which have been moved from dockerhub to GHCR: https://github.com/OSGeo/gdal/tree/master/docker
Great!

What is different here?

@Guts
Copy link
Author

Guts commented Oct 18, 2023

What is different here?

Not sure to get your point.
The difference is the issue's topic: it's not possible to pull (authenticated or not) this repo container package from GHCR.

@sambercovici
Copy link

I apologize for the briefness.
What I mean is, is it clear why this specific repo is not allowing public access and/or what needs to be changed?

@exhuma
Copy link

exhuma commented Oct 21, 2023

I'm pretty sure it's just an oversight from the migration. I assume that it's only a permission setting for the GitHub project. This needs to be done by one of the project owners/admins. Pinging @kevin1024 again ;)

@simon-weber
Copy link

Any updates on this? Looks like it's still an issue.

@marcospereira
Copy link

What is different here?

To point out the documentation here, the package needs to be made public. From GitHub docs:

However, in the Container registry, public packages allow anonymous access and can be pulled without authentication or signing in via the CLI.

And these are the instructions about how to make it public to anyone: Configuring visibility of packages for an organization.

There is a publish workflow that publishes the docker image already. So, it is only a matter of the package's visibility configuration.

Maybe @sigmavirus24 @nateprewitt have access to do it?

@sigmavirus24
Copy link

@marcospereira please don't mention people. As a general rule, if I could have fixed this already, I would have. I don't have the ability to configure anything about this repository beyond some very basic features around pull requests.

@marcospereira
Copy link

Okay, apologize about that. Where would be the appropriate place to discuss it?

Again, sorry about the noise.

@ewdurbin
Copy link
Member

If the maintainers of this repo are 👍🏼, I'm happy to flip the bit to make the published image public. cc @psf/httpbin

@nateprewitt
Copy link
Member

I think Kevin was the only one involved with the image, neither Ian or I were involved with the setup for docker. I don't have an issue with making it public, but we may want comment from Kevin first.

@kevin1024
Copy link

I think we should make it public!

@ewdurbin
Copy link
Member

It's done!

Screenshot 2024-06-18 at 7 39 01 AM

@kevin1024
Copy link

Nice! Thank you.

@Guts
Copy link
Author

Guts commented Jun 18, 2024

Thanks you!

@ewdurbin
Copy link
Member

@kevin1024 I opened a PR to address the lack of ARM64 images as well: #46

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests