Skip to content

linux/arm64 platform images causing exec format error at runtime #798

@matthewfeickert

Description

@matthewfeickert

Hi. I'm seeing some strange behavior in the most recent releases of the slim-bullseye versions of the Python images (this wasn't happening a few weeks ago). If a linux/arm64 platform image is requested it will give a exec format error at runtime.

Minimal failing example:

$ docker --version
Docker version 23.0.0, build e92dd87
$ uname --machine
x86_64
$ docker pull --platform linux/amd64 python:3.11-slim-bullseye
3.11-slim-bullseye: Pulling from library/python
Digest: sha256:33a1008485e1a2dc565be79ece483b240cbc4d6266d6144a57a5a9965ede9bbf
Status: Downloaded newer image for python:3.11-slim-bullseye
docker.io/library/python:3.11-slim-bullseye
$ docker run --rm --platform linux/amd64 python:3.11-slim-bullseye  # linux/amd64 runs without error
$ docker pull --platform linux/arm64 python:3.11-slim-bullseye
3.11-slim-bullseye: Pulling from library/python
Digest: sha256:33a1008485e1a2dc565be79ece483b240cbc4d6266d6144a57a5a9965ede9bbf
Status: Downloaded newer image for python:3.11-slim-bullseye
docker.io/library/python:3.11-slim-bullseye
$ docker run --rm --platform linux/arm64 python:3.11-slim-bullseye
exec /usr/local/bin/python3: exec format error
$ docker run --rm --platform linux/arm64 python:3.11-slim-bullseye /bin/bash -c 'python --version'
exec /bin/bash: exec format error

The same thing is happening for python:3.10-slim-bullseye.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions