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

Sleeper CLI Docker images on main branch can't be pulled #2494

Closed
patchwork01 opened this issue May 13, 2024 · 2 comments · Fixed by #2963
Closed

Sleeper CLI Docker images on main branch can't be pulled #2494

patchwork01 opened this issue May 13, 2024 · 2 comments · Fixed by #2963
Labels
bug Something isn't working
Milestone

Comments

@patchwork01
Copy link
Collaborator

patchwork01 commented May 13, 2024

Description

After a while, Docker images built against the main branch seem to become unavailable to pull. We get manifest unknown from a docker image pull even when the image is visible on GHCR with the specified tag.

Here's a GitHub community discussion on this problem, which seems to be a bug in GitHub:

Steps to reproduce

  1. See image displays as existing in GitHub at https://github.com/gchq/sleeper/pkgs/container/sleeper-deployment/195478646?tag=0.22.1
  2. Run docker image pull ghcr.io/gchq/sleeper-deployment:0.22.1
  3. See mainfest unknown failure
  4. See download count incremented in GitHub UI, and does each time you run docker image pull, even with the failure
  5. Run docker manifest inspect ghcr.io/gchq/sleeper-deployment:0.22.1
  6. See manifest unknown failure

Expected behaviour

Images should stay available for download indefinitely while tagged.

Screenshots/Logs

$ docker logout ghcr.io
Removing login credentials for ghcr.io
$ docker image pull ghcr.io/gchq/sleeper-deployment:0.22.1
0.22.1: Pulling from gchq/sleeper-deployment
manifest unknown
$ docker manifest inspect ghcr.io/gchq/sleeper-deployment:0.22.1
manifest unknown
$ docker manifest inspect ghcr.io/gchq/sleeper-deployment:0.21.0
manifest unknown
$ docker manifest inspect ghcr.io/gchq/sleeper-deployment:develop
{
   "schemaVersion": 2,
   "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json",
   "manifests": [
      {
         "mediaType": "application/vnd.docker.distribution.manifest.v2+json",
         "size": 3254,
         "digest": "sha256:adf980c91d2c5ae538f8332a8c94ff1669d2e3facdd7d18bb06d92c34ee8cf75",
         "platform": {
            "architecture": "amd64",
            "os": "linux"
         }
      },
      {
         "mediaType": "application/vnd.docker.distribution.manifest.v2+json",
         "size": 3254,
         "digest": "sha256:a3c6de52536cc71df289160feb9d81d70a3783bb3316a1692953d6ca8fc3e84f",
         "platform": {
            "architecture": "arm64",
            "os": "linux"
         }
      }
   ]
}

Background

This causes:

@patchwork01 patchwork01 added the bug Something isn't working label May 13, 2024
@patchwork01 patchwork01 changed the title GHCR Docker images on main branch can't be pulled Sleeper CLI Docker images on main branch can't be pulled May 13, 2024
@patchwork01
Copy link
Collaborator Author

On hold as I've raised a support ticket with GitHub.

@patchwork01
Copy link
Collaborator Author

No longer on hold as this should be resolved by the following issue:

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

Successfully merging a pull request may close this issue.

2 participants