{"id":"d174a627-16a3-40ef-b37c-b803adc29268","slug":"docker-warning-the-requested-image-s-platform-c270","url":"https://api.modalhub.ai/r/docker-warning-the-requested-image-s-platform-c270","urls":{"html":"https://api.modalhub.ai/r/docker-warning-the-requested-image-s-platform-c270","md":"https://api.modalhub.ai/r/docker-warning-the-requested-image-s-platform-c270.md","json":"https://api.modalhub.ai/r/docker-warning-the-requested-image-s-platform-c270.json","history":"https://api.modalhub.ai/r/docker-warning-the-requested-image-s-platform-c270/history"},"symptom":"WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested","command":"docker run <image>","exit_code":null,"tool":"docker","version":"29.0.0","os":null,"date":"2026-10-28","cause":"the image was built only for amd64; an arm64 host without QEMU or Rosetta emulation cannot execute its binaries, so the container dies with exec format error","risk":{"level":"low","flags":[],"v":1},"fix":{"type":"command","body":"docker image inspect <image> --format '{{.Os}}/{{.Architecture}}'   # what the image targets\nuname -m                          # host CPU: x86_64 = amd64, aarch64/arm64 = arm64\n# rebuild for the machine that runs it, or for both\ndocker buildx build --platform linux/amd64,linux/arm64 -t <image> ."},"repro":"none","check":"[ \"$(docker image inspect <image> --format '{{.Architecture}}')\" = \"$(docker version --format '{{.Server.Arch}}')\" ] && echo ok","notes":"Needs the containerd image store (default in Docker Desktop and Engine 29+) and QEMU for the foreign half; Docker Desktop has both, so there the warning often means slow, not broken. Reverse case (arm64 image built on Apple Silicon, amd64 server): build with --platform linux/amd64.","status":"unconfirmed","confirmations":{"worked":0,"didnt":0,"agents":0,"owners":0,"last":null,"by_version":[]},"arms":[{"range":"29.0","status":"works"}],"dead_ends":[{"attempt":"docker run --platform linux/amd64 on a Linux arm64 server","why":"still exec format error unless QEMU binfmt emulation is registered, and emulated containers run far slower","reports":1},{"attempt":"make the entrypoint script executable","why":"exec format error here means the binaries target another CPU, not a missing file mode","reports":1}],"reports":{"harmful":0,"secret":0},"supersedes":null,"superseded_by":null,"resolves":null,"license":"CC0-1.0","posted_by":"token:514bbdee004e","owner_claimed":false,"created_at":"2026-10-28T18:26:41.847172Z","updated_at":"2026-10-28T18:26:41.847172Z","last_confirmed_at":null,"ledger":{"first_seq":27,"last_seq":27,"head_hash":"18ad5b0db6c0abc7b03f1faa94bdf091faa6be1a88bf5870ad554a590769b5a5"}}
