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

docker manifest inspect doesn't support OCI manifests #44898

Closed
flx42 opened this issue Feb 2, 2023 · 1 comment
Closed

docker manifest inspect doesn't support OCI manifests #44898

flx42 opened this issue Feb 2, 2023 · 1 comment
Labels
kind/feature Functionality or other elements that the project doesn't currently have. Features are new and shiny

Comments

@flx42
Copy link
Contributor

flx42 commented Feb 2, 2023

Description

I believe this was working fine a few days ago on the Ubuntu 22.04 image from Docker Hub, but now it doesn't:

$ docker manifest inspect ubuntu:22.04
no such manifest: docker.io/library/ubuntu:22.04

The reason is probably because the Ubuntu images on Docker Hub switched to OCI manifests recently: https://git.launchpad.net/cloud-images/+oci/ubuntu-base/tree/?h=dist-jammy-amd64-20230126

With buildah:

$ buildah --log-level=debug inspect ubuntu:22.04
[...]
DEBU[0000] Content-Type from manifest GET is "application/vnd.oci.image.index.v1+json" 

Whereas older Ubuntu images that haven't been updated still work:

$ docker manifest inspect ubuntu:16.04
{
   "schemaVersion": 2,
   "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json",
[...]

$ buildah --log-level=debug inspect ubuntu:16.04
[...]
DEBU[0000] Content-Type from manifest GET is "application/vnd.docker.distribution.manifest.list.v2+json" 
@flx42 flx42 added kind/feature Functionality or other elements that the project doesn't currently have. Features are new and shiny status/0-triage labels Feb 2, 2023
@neersighted
Copy link
Member

This was fixed in docker/cli#3990 and is released in 23.0.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature Functionality or other elements that the project doesn't currently have. Features are new and shiny
Projects
None yet
Development

No branches or pull requests

2 participants