run docker containers for different architectures
This is a wrapper script to let you run different architecture containers with qemu-user
You must be running in an environment with a working binfmt_misc
setup. On Debian, if you
install the qemu-user-static
package that should be sufficient. On other systems make
sure that the binfmt_misc
pseudo filesystem is mounted (and configured).
./cross-docker run -it armv7/armhf-ubuntu uname -a
Linux a6722bd5dabb 4.1.12 #1 SMP Mon Jan 4 11:26:42 UTC 2016 armv7l armv7l armv7l GNU/Linux
The first time you use it it will download the qemu
binaries.
If your docker container already has the qemu
binary in, you do not need this, eg
docker run resin/armv7hf-debian uname -a
or docker run justincormack/ppc64le-debian uname -a
.
If your binfmt_misc
is set up right the following architectures should be supported:
aarch64
alpha
arm
armeb
cris
i386
m68k
microblaze
microblazeel
mips
mips64
mips64el
mipsel
mipsn32
mipsn32el
or32
ppc
ppc64
ppc64abi32
ppc64le
s390x
sh4
sh4eb
sparc
sparc32plus
sparc64
unicore32
x86_64