docker-library / python

Docker Official Image packaging for Python
https://www.python.org/
MIT License
2.5k stars 1.04k forks source link

Platform mismatch in manifest for arm32v7 slim variants #888

Closed mrlt8 closed 7 months ago

mrlt8 commented 7 months ago

Encountering platform mismatch issues with the slim variants of the Python Docker images.

This issue seems to be specific to the slim variants of the Python images. The manifest for arm32v7/python:3.12-slim includes platforms linux/arm/v8 and unknown/unknown, causing a mismatch during the build process.

arm32v7/python:3.12-slim

docker buildx imagetools inspect arm32v7/python:3.12-slim
Name:      docker.io/arm32v7/python:3.12-slim
MediaType: application/vnd.oci.image.index.v1+json
Digest:    sha256:f3dff80db9739808b7582fe0a44ad6743a850c86b0dc1c4a7e58f3fbe74841aa

Manifests: 
  Name:        docker.io/arm32v7/python:3.12-slim@sha256:0c37fa8b12296a8791256137a0f581c6143d17fdffb3e2f15a93782f314abf0b
  MediaType:   application/vnd.oci.image.manifest.v1+json
  Platform:    linux/arm/v8

  Name:        docker.io/arm32v7/python:3.12-slim@sha256:d43d755eb1af8f7b85f2669e5bb5d04c9d6b43578bec42de33af04e7c43a7e49
  MediaType:   application/vnd.oci.image.manifest.v1+json
  Platform:    unknown/unknown
  Annotations: 
    vnd.docker.reference.digest: sha256:0c37fa8b12296a8791256137a0f581c6143d17fdffb3e2f15a93782f314abf0b
    vnd.docker.reference.type:   attestation-manifest

arm32v7/python:3.12

docker buildx imagetools inspect arm32v7/python:3.12     
Name:      docker.io/arm32v7/python:3.12
MediaType: application/vnd.docker.distribution.manifest.list.v2+json
Digest:    sha256:a86c2a8bbbc1151f19a5613fbd073070d3b8b5057c3f2805c48f61ba7315b7b8

Manifests: 
  Name:      docker.io/arm32v7/python:3.12@sha256:4fa63b19c59072477f5a54843464fb2e69085e500dd2811a55cddc3e201c0a7a
  MediaType: application/vnd.docker.distribution.manifest.v2+json
  Platform:  linux/arm/v7
tianon commented 7 months ago

Gah, thanks for the heads up! I'm not sure what happened here, but digging into it now. :bow:

tianon commented 7 months ago

Ok, should be fixed now!

mrlt8 commented 7 months ago

Everything is back to normal now, thanks for the quick fix!