Image Build for amd64 only works BuildX?

Hi,

i’m building some Images for my Docker Repo on my Raspberry Pi 4b Architecture aarch64 or arm64 what also can build armhf or arm32v7

If i want to build x86_64 or amd64 i cant an Error during the Build Process:

exec /bin/sh: exec format error

If i build the same with buildx there is no Error.

I want to understand why ?

Please, use the search function of the forum (top right corner) and search for “exec /bin/sh: exec format error”.
If you did that, share what you tried from what were suggested.

The error message must be because of oncmpatible architectures. You can share what you are doing exactly. Someone might be able to tell what you are doing wrong. For example copying wrong files, using emulation wrong, anything.

I have found a solution meanwhile. The qemu-user-static wasn´t installed for Multiarch, after installation it works with the normal build command.