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
buildah image - podman pull: unsupported docker v2s2 media type: "" #2266
Comments
I'm not familiar with the repository that you're using, but I'm guessing it's an image formating problem and that it doesn't like OCI based images. Can you try changing your commit command to:
and see if it flows from there? |
Thank you Tom! It worked. And also inspecting with skopeo now works - previously I got the same error message as during pull. As I am beginning with podman and buildah, this has been of great help to me. Thanks again. Uwe |
You should probably report an error with whoever provides your container registry to support OCI Images. |
Docker OCI support released in Nexus Repository v3.23.0: https://issues.sonatype.org/browse/NEXUS-21087 |
Awesome, @uwegeercken Does it work for you now? |
I think there might be a bug here in buildah. In this case, buildah sends Accept headers with Reference: https://github.com/opencontainers/distribution-spec/blob/master/spec.md#pulling-an-image-manifest |
@mattjohnson I'm going to reopen so we can investigate further. |
Hello. I believe I've stumbled on this issue, too. Images uploaded buy skopeo to the registry (github packages), can't be pulled buy skopeo or podman with the same error. |
Having the same issue with Nexus 3.24 OSS. Workaround is |
@mtrmac @vrothberg Is this issue we have with Artifactory not properly supporting OCI Images? |
@rhatdan The original issue was linked above. If there is still a problem / a different problem, it’s not one that we have investigated.
From this description it’s not clear to me what is going wrong / what you think the behavior should be instead. (Historically, the Nexus bug was that it 1) when asked for a schema2 or OCI manifest, it returned the OCI manifest but a |
There were still some issues around the Accept/Content-Type headers in Nexus 3.24 that should be resolved in 3.25/3.25.1+. It now returns the correct content type based on the manifest that was uploaded. |
I've this problem with GitHub Container Registry:
This image is built using buildah (https://github.com/sycured/centos-haskell-builder/blob/main/run.sh) and works with Docker |
Can you report this issue to them? They need to support OCI Images properly. |
I did it, wait and see |
Hi @sycured, Last week GitHub released a new container registry that was developed with ICO compliance in mind. You can find it at https://ghcr.io. Here is how to migrate your images: Could you try pushing your images there and see if it works any better? |
Hi @jcansdale |
@sycured thanks for the issue and the updates. As this is working, I'm going to close this issue. |
Getting this same error, pulling an image from ghcr.io:
This isn't an image I have control over. Other info: Thanks. |
Docker got further, but it did not work either.
|
@mtrmac @vrothberg PTAL ^^ |
Please open a new issue along with some more information. It's very hard to manage issues when they are already closed and potentially different. The image in question is definitely wrong (see below): ~ $ skopeo inspect --raw docker://ghcr.io/talos-systems/install-cni@sha256:f4141445647db7b51b644f900080ef319a84da9ae9bbbf0ea105410e6853da0d
{
"mediaType": "application/vnd.docker.distribution.manifest.v2+json",
"schemaVersion": 2,
"config": {
"mediaType": "application/vnd.docker.container.image.v1+json",
"digest": "sha256:ee4f3da7dd84aec927e52a610e9d1b39d1d1f28ae94a09faab80325b69b8793b",
"size": 432
},
"layers": [
{
"mediaType": "application/vnd.oci.image.layer.v1.tar+gzip",
"digest": "sha256:8e0fc8e49c15c42d23ff08e1a8d0ea99bebb5455babd61567a0ea810ad9f7880",
"size": 43622567
}
] It claims to be a Docker image with a Docker config but an OCI layer, which is invalid. So I think that Podman and Docker rightfully reject pulling it. |
I followed the buildah tutorial for building an image and pushed the image to my local Nexus v3.22 artifactory - like this:
buildah push --tls-verify=false silent1:8082/alpine-basic docker://silent1:8083/uwe/alpine-basic:latest
The image is visible in Nexus artifactory.
When I now go and remove the image locally and try to pull the image from Nexus
podman pull silent1:8082/uwe/alpine-basic:latest
I get following error:
podman pull silent1:8082/uwe/alpine-basic:latest
Trying to pull silent1:8082/uwe/alpine-basic:latest...
unsupported docker v2s2 media type: ""
Error: error pulling image "silent1:8082/uwe/alpine-basic:latest": unable to pull silent1:8082/uwe/alpine-basic:latest: unable to pull image: Error initializing image from source docker://silent1:8082/uwe/alpine-basic:latest: unsupported docker v2s2 media type: ""
Note: that I can pull images from docker hub using podman and through Nexus like this without a problem:
podman pull silent1:8082/httpd:2.4-alpine
Steps to reproduce the issue:
Describe the results you received:
podman pull command result is indicating a unsupported docker v2s2 media type: ""
Describe the results you expected:
podman would pull the existing image from local Nexus artifactory
Output of
rpm -q buildah
orapt list buildah
:Output of
buildah version
:Output of
podman version
if reporting apodman build
issue:Output of
cat /etc/*release
:Output of
uname -a
:Output of
cat /etc/containers/storage.conf
:The text was updated successfully, but these errors were encountered: