Based on multiarch/ubuntu-core
on Docker Hub and https://github.com/chihchun/snapcraft-docker.
All images are rebuild each week to have packages list updated.
Supported architectures
- amd64
- i386 (amd64 architecture)
- armhf (native and amd64 architecture)
- arm64 (native and amd64 architecture)
Once you need to configure binfmt-support on your Docker host. This works locally or remotely (i.e using boot2docker or swarm).
# configure binfmt-support on the Docker host (works locally or remotely, i.e: using boot2docker)
$ docker run --rm --privileged multiarch/qemu-user-static:register --reset
Then you can run an armhf
image from your x86_64
Docker host.
$ ddocker run --rm -v $(pwd):/build jeromeheissler/snapcraft:armhf-xenial
Or an x86_64
image from your x86_64
Docker host, directly, without qemu emulation.
$ docker run --rm -v $(pwd):/build jeromeheissler/snapcraft:amd64-xenial
It also works for arm64
$ docker run --rm -v $(pwd):/build jeromeheissler/snapcraft:arm64-xenial