Zend certified PHP/Magento developer

x86 binary in a ubuntu docker container to be run on m1 mac

Need to run, x86 binary in a ubuntu docker container on a m1 mac.

Using buildx I was able to to create amd64/arm64 builds.

docker buildx build –platform linux/arm,linux/arm64,linux/amd64 -t myrep/testcontainer -f install/docker/Dockerfile . –push

  • The application within the container failed to start and errored out with

qemu-x86_64: Could not open ‘/lib64/ld-linux-x86-64.so.2’: No such
file or directory

Note: “arm64 binary on arm64 ubuntu container” , I was able to run easily on M1. This is inline with the docker article https://docs.docker.com/desktop/multi-arch/.

Does this mean we cant use buildx contianer on M1?