tonistiigi / binfmt

Cross-platform emulator collection distributed with Docker images.
MIT License
976 stars 71 forks source link

BUG == not work >> arm64v8/alpine on arm7 #136

Closed gowy222 closed 11 months ago

gowy222 commented 1 year ago

docker run --privileged --rm tonistiigi/binfmt --version

binfmt/a161c41 qemu/v7.0.0 go/1.18.5

root@orangepizero:~# docker run --privileged --rm tonistiigi/binfmt --install all
installing: arm64 OK
installing: ppc64le OK
installing: riscv64 OK
installing: 386 OK
installing: mips64 OK
installing: amd64 OK
installing: s390x OK
installing: mips64le OK
{
  "supported": [
    "linux/arm/v7",
    "linux/amd64",
    "linux/arm64",
    "linux/riscv64",
    "linux/ppc64le",
    "linux/s390x",
    "linux/386",
    "linux/arm/v6"
  ],
  "emulators": [
    "qemu-aarch64",
    "qemu-i386",
    "qemu-mips64",
    "qemu-mips64el",
    "qemu-ppc64le",
    "qemu-riscv64",
    "qemu-s390x",
    "qemu-x86_64"
  ]
}
root@orangepizero:~# docker run --rm arm64v8/alpine uname -a
WARNING: The requested image's platform (linux/arm64/v8) does not match the detected host platform (linux/arm/v7) and no specific platform was requested
tonistiigi commented 1 year ago

That warning is about your native platform. Installing emulators does not change the native platform. You can either ignore the warning if running an image with the emulator is expected or set --platform as the warning suggests.