I am using x86 centos7 linux.
I want to use cross-compile to arm64 in docker
but I can't use docker buildx --platform because of the low Kenel version (centos7)
What should I do?
I've searched about QEMU, docker to solve this problem but I can't find the solution.
I want to make the system like this
| app1 | app2 | app3 | app4 |
| docker |
| qemu(arm64, x86..) |
| host os (computer os) |
| host h/w (computer) |
or.... maybe like this (uncertain)
| app1 | app2 | app3 | app4 |
| qemu(arm64, x86..) |
| docker |
| host os (computer os) |
| host h/w (computer) |
*app1:arm64 / app2:x86 / app3:arm64 / app4:x86
Please remember that centos7 uses yum, not apt.
--platform linux/arm64). I don't know if it depends on the same kernel features that break buildx, though.buildxdepends on your version of docker-engine, not your kernel per se. In later versions (that might not be available for you) buildx is available as plugin for docker so you can run commands likedocker buildx, however if you have at least docker engine 19.03 or above, you can run the buildx binary directly and still get builds as stated here github.com/docker/buildx/issues/160#issuecomment-541161728