exec format error
An image built on an x86 laptop fails on an ARM server with exec format error. What is the fix?
Choose one answer
Add ENV ARCH=arm64 to the Dockerfile and rebuild on the laptop.
ENV ARCH=arm64
Run the container with --privileged on the ARM server.
--privileged
Build a multi-platform image with docker buildx --platform.
docker buildx --platform
Switch to a scratch base image, which runs unchanged on every CPU architecture.
scratch