I will explain what to do when the following error occurs when you pull the docker image file generated on Raspberry pi with docker on Windows.
python
standard_init_linux.go:207: exec user process caused "exec format error"
The CPU of Raspberry pi is ARM type, while the CPU of windows type is X86 type. Image files generated by ARM CPUs cannot be pulled on windows running on X86 CPUs.
If you install qemu-user-static on docker running on Windows, it will be generated by ARM system (Raspberry Pi) CPU. Image can be pulled on X86 series (Windows) Docker.
Example
$ uname -m //Display the CPU type of your PC
x86_64
//Make Images created on ARM CPUs work on X86 CPUs
$ docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
Recommended Posts