Docker Community Forums

Share and learn in the Docker community.

A case for volumes during ‘docker build’: Building for alternative architectures

docker

(Ash Wilson) #1

It would be SO HANDY if I could specify a volume to attach during build, so I could build containers for ARM from dockerfile on a regular x86_64 host.

This works fine for running docker, as I can:
docker run -it -v /usr/bin/qemu-arm-static:/usr/bin/qemu-arm-static someuser/rpi-raspbian bash

But if I want to build from dockerfile, there’s no way to attach a volume. Thusly, none of the commands will run because the arch is incorrect.

Anyone have a workaround for this?