You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I ran skopeo inspect --raw docker://docker.io/python:3.11 and attached the output to this issue.
According to the image index for the multi-arch image docker.io/python:3.11, the media type is mediaType: application/vnd.oci.image.index.v1+json
According to the OCI Image Index Specification, this permits the individual images to specify mediaType to be either application/vnd.oci.image.manifest.v1+json or application/vnd.oci.image.index.v1+json. However, both windows images specify the in this context invalid mediaType: application/vnd.docker.distribution.manifest.v2+json
This leads to some container registries (e.g. Quay) rejecting the image when trying to push it due to validation failure. The same issue occurs with python:12 as well, but not with python:10 (which does not support windows in the multiarch-image)
The image specification doesn't say this is invalid, only that it might cause portability issues (see opencontainers/image-spec#1150 for a much longer discussion around that).
Unfortunately, this is something we can't really "fix" right now -- the Windows images currently have to be built with Docker's "classic" builder, so they are going to be Docker media types for the foreseeable future. If this is a major blocker for some workflow you've got and you don't actually need Windows support, I would suggest choosing an explicitly Linux-only tag such as python:3.11-bookworm (which is one of the components that goes into the python:3.11 "shared" tag).
I ran
skopeo inspect --raw docker://docker.io/python:3.11
and attached the output to this issue.According to the image index for the multi-arch image docker.io/python:3.11, the media type is
mediaType: application/vnd.oci.image.index.v1+json
According to the OCI Image Index Specification, this permits the individual images to specify
mediaType
to be eitherapplication/vnd.oci.image.manifest.v1+json
orapplication/vnd.oci.image.index.v1+json
. However, both windows images specify the in this context invalidmediaType: application/vnd.docker.distribution.manifest.v2+json
This leads to some container registries (e.g. Quay) rejecting the image when trying to push it due to validation failure. The same issue occurs with python:12 as well, but not with python:10 (which does not support windows in the multiarch-image)
docker_io_python_3_11.json
quay_failed_push.log
The text was updated successfully, but these errors were encountered: