Run Docker SDK on MAC M1

I could not compile my package on the docker SDK on MAC M1, and got the following error:

CMake Error at /builder/staging_dir/host/share/cmake-3.22/Modules/CMakeTestCCompiler.cmake:69 (message):
The C compiler

"/builder/staging_dir/toolchain-mipsel_24kc_gcc-11.2.0_musl/bin/mipsel-openwrt-linux-musl-gcc"

is not able to compile a simple test program.

The docker run command: docker run --platform linux/amd64 --rm -it openwrt/sdk:ramips-mt7621-22.03.3 /bin/bash

When I tried to test mipsel-openwrt-linux-musl-gcc --version it got Segmentation fault but there is an .mipsel-openwrt-linux-musl-gcc.bin which is an executable:

./.mipsel-openwrt-linux-musl-gcc.bin --version
.mipsel-openwrt-linux-musl-gcc.bin (OpenWrt GCC 11.2.0 r20028-43d71ad93e) 11.2.0
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Are there any way to run the docker image which allows the system see mipsel-openwrt-linux-musl-gcc as the .mipsel-openwrt-linux-musl-gcc.bin file.

Note: I could build my own docker image based on openwrt/sdk, and manually link mipsel-openwrt-linux-musl-gcc to mipsel-openwrt-linux-musl-gcc.bin but it seemed not the right way to do.

Thanks