How to run emulator64-arm in a Docker container?

I tried to run emulator64-arm in a Docker container but it reported:

$ emulator64-arm -avd t2 -no-window -no-accel -gpu off
qemu: could not open disk image /home/testuser/.android/avd/t2.avd/sdcard.img: Interrupted system cal

I think qemu-aarch64 should be a pure software emulator without any fancy things involved but I was wrong.
I also tried to start the container with --privileged but still no luck.

In my case we need to run some smoke tests for our Android APK, speed doesn’t really matter but Android-X86 is not an option.

Source: StackOverflow