-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Podman fails to pull nested OCI index #25045
Comments
Same issue for me pulling the gitlab-runner image since last GitLab update. I tested also on a different system without any container running. Same Podman version as in bug report. |
The error points out the underlying issue: {
"schemaVersion": 2,
"mediaType": "application/vnd.oci.image.index.v1+json",
"manifests": [
{
"mediaType": "application/vnd.oci.image.index.v1+json",
"digest": "sha256:cb1f1872857f8ba219bd08d81260503a168057960704df66e52217f2c85ba1fc",
"size": 3117,
"annotations": {
"org.opencontainers.image.created": "2025-01-18T04:56:52Z"
}
}
]
}
@mtrmac PTAL |
Docker is able to walk the list and pull the image. |
Note, that gitlab worked around this issue so latest gitlab-runner images should work now. The linked comment also contains some extra info that is likely relevant, I assume this is not the only project that might be using |
Thanks for sharing! |
That’s a bit at odds with the c/image/copy conception of an image. The code could be built to recurse everywhere copying a nested structure, or to recurse looking for a single platform-specific image, but … what does that structure mean? (Technically, if we recursed, we would need to, at least, arrange that in c/storage, the image can be looked up using digests of all manifests on the way, not just the per-platform one and the top-level one.) |
Issue Description
Last few gitlab-runner images fail to pull:
podman pull gitlab/gitlab-runner:alpine3.18-0bb36a02 Trying to pull docker.io/gitlab/gitlab-runner:alpine3.18-0bb36a02... Error: copying system image from manifest list: Unexpectedly received a manifest list instead of a manifest for a single image
Note that there is something specific about these that makes podman fail, older versions of gitlab-runner pull fine:
# this works as expected podman pull gitlab/gitlab-runner:alpine-v17.7.1
All of the above images pull with docker just fine.
Steps to reproduce the issue
Steps to reproduce the issue
podman pull gitlab/gitlab-runner:alpine3.18-0bb36a02
Describe the results you received
Got the error:
Error: copying system image from manifest list: Unexpectedly received a manifest list instead of a manifest for a single image
Describe the results you expected
Image pulls as usual.
podman info output
Podman in a container
No
Privileged Or Rootless
None
Upstream Latest Release
Yes
Additional environment details
Note that this is not specific to Docker hub, pulling the same image from gitlab registry also fails:
podman pull registry.gitlab.com/gitlab-org/gitlab-runner:alpine-0bb36a02 Trying to pull registry.gitlab.com/gitlab-org/gitlab-runner:alpine-0bb36a02... Error: copying system image from manifest list: Unexpectedly received a manifest list instead of a manifest for a single image
Additional information
Podman 5.2.3 also has this issue.
The text was updated successfully, but these errors were encountered: