Skip to content

Media type for python:3.10-slim-bookworm changed to "application/vnd.oci.image.index.v1+json" #936

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

Closed
ahpd opened this issue Jul 10, 2024 · 3 comments

Comments

@ahpd
Copy link

ahpd commented Jul 10, 2024

In the past week or so the media type for python:3.10-slim-bookworm has changed to "application/vnd.oci.image.index.v1+json". I believe it used to be "application/vnd.docker.distribution.manifest.list.v2+json" which is what the base image debian:bookworm-slim shows:

➜ docker manifest inspect debian:bookworm-slim | head                             
{
   "schemaVersion": 2,
   "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json",
   "manifests": [
      {
         "mediaType": "application/vnd.docker.distribution.manifest.v2+json",
         "size": 529,
         "digest": "sha256:39868a6f452462b70cf720a8daff250c63e7342970e749059c105bf7c1e8eeaf",
         "platform": {
            "architecture": "amd64",

➜ docker manifest inspect python:3.10-slim-bookworm | head
{
   "schemaVersion": 2,
   "mediaType": "application/vnd.oci.image.index.v1+json",
   "manifests": [
      {
         "mediaType": "application/vnd.oci.image.manifest.v1+json",
         "size": 1944,
         "digest": "sha256:8244f266195f442379acd0e7d8918b1ef3967050ebf49c40291e89d0a1ba8f94",
         "platform": {
            "architecture": "amd64",

Is this intended and if so what was the reason for changing the media types? We currently have several Vertex AI pipelines that use the Python images which are failing due to this issue

{
	"errors": [{
		"code": "MANIFEST_UNKNOWN",
		"message": "Manifest has media type \"application/vnd.oci.image.manifest.v1+json\" but client accepts [\"application/vnd.docker.distribution.manifest.v2+json,application/vnd.docker.distribution.manifest.v1+json,application/vnd.docker.distribution.manifest.v1+prettyjws\"]"
	}]
}

Thank you.

@jonjohnsonjr
Copy link

I'd file an issue against Google.

@yosifkit
Copy link
Member

Yes, this was intentional. We are in a slow, but active process of migrating all of Official Images builds from the classic docker build to the docker build backed by buildkit. Python is one that was added recently. Many of the images in Docker Official Images are now built using buildkit and use these "newer" oci media types; eventually all of them will be.

More about the OCI: https://opencontainers.org/

@ahpd
Copy link
Author

ahpd commented Jul 10, 2024

Got it, thank you for the explanation.

@ahpd ahpd closed this as completed Jul 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants