I have a self-compiled container that build from alpine can successfully running on M1 macOS docker desktop, but not running on arm64 RouterOS.
The main purpose of this container is running a special Linux binary.
I have tested it in many cases. The following are each of them.
Alpine-arm64 + glibc + special arm64 binary v3 -> running on M1 macOS
Alpine-arm64 + glibc + special arm64 binary v3 -> running on RB5009
Alpine-arm64 + glibc + special arm64 binary v3 -> running on hAP ax2
Alpine-amd64 + glibc + special amd64 binary v3 -> running on CHR
In general, the v3 binary running without any problem in any arch on any device.
Alpine-arm64 + glibc + special arm64 binary v4 -> running on M1 macOS
Alpine-arm64 + glibc + special arm64 binary v4 -> running on RB5009
Alpine-arm64 + glibc + special arm64 binary v4 -> running on hAP ax2
Alpine-amd64 + glibc + special amd64 binary v4 -> running on CHR
In general, the v4 binary have running issue with arm64 RouterOS devices. But it doesn't have any issue with amd64 RouterOS devices or arm64 macOS devices.
I appreciate any ideas of next move?