Github Container registry (ghcr.io) packages not appearing in webinterface

Hello Github community,

I wanted to try out the new Github Container registry that was announced today.

With the Docker CLI I could successfully log in (using a personal access token) and push an image:

$ docker login ghcr.io
Username: my-github-username
Password *******************
$ docker pull hello-world:latest
$ docker tag hello-world:latest ghcr.io/my-github-username/hello-world:latest
$ docker push ghcr.io/my-github-username/hello-world:latest

This seems to have worked. The container image seems to be available at the registry:

docker manifest inspect ghcr.io/my-github-username/hello-world:latest
{
	"schemaVersion": 2,
...

But it doesn’t seem to be public:

$ docker logout
docker manifest inspect ghcr.io/my-github-username/hello-world:latest
denied: unauthenticated: User cannot be authenticated with the token provided.

I was now looking to modify the permissions. According to the docs I should be able to see the newly pushed container image on my github profile under packages.

But I’m only getting the default “getting started” screen there (as if I had zero packages):

image

Am I doing anything wrong? Any help would be appreciated. Thanks in advance!

:wave: Thanks for trying it out!

Packages are initially published as private. You should be able to find them by looking for it under your user account https://github.com/my-github-username?tab=packages&visibility=private

Now that we’ve launched publicly we’ll be wiring up support for associated containers to show up along side the repository. Until then you’ll need to go to your org or user account view to find them.

You can also go directly to by name https://github.com/users/my-github-username/packages/container/hello-world/

Here’s the URL scheme:

1 Like

thanks for the direct URL @clarkbw , unfortunately the package (container image) doesn’t appear there either (also changing visibility = all is the same):

But I definitely have a container image on ghcr.io that I can pull with Docker (once I’m logged in with a personal access token):

$ docker pull ghcr.io/my-github-username/hello-world:latest
latest: Pulling from my-github-username/hello-world
Digest: sha256:90659bf80b44ce6be8234e6ff90a1ac34acbeb826903b02cfa0da11c82cbc042
Status: Downloaded newer image for ghcr.io/christian-korneck/hello-world:latest
ghcr.io/my-github-username/hello-world:latest

Any ideas? Thanks!

1 Like

quick addition: I can indeed access this URL directly:

https://github.com/users/my-github-username/packages/container/hello-world/

So manually assembling this URL with the container name seems to resolve my issue. Thanks for that @clarkbw !

(However, I can’t access this page from anywhere else and even this page incorrectly states that there are 0 packages).

image

2 Likes

Excellent! The Edit Package drop down will have options for changing the package visibility and deleting versions. The switch to public should allow for authentication free access.

The other connections from the repo and search are being hooked up right now. Hang tight and we’ll have those addressed soon.

3 Likes