Closed ghost closed 9 years ago
I am not sure you understood that this is an image just for the armhf architecture. In order to run it on your amd64 host (supposedly for building / testing purposes), you need to install qemu and set up emulation support.
I did understand but I had conflicts between various qemu packages (I don't remember what it was but it may have been qemu-user-static and binfmt-support (maybe related to https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=677529 ) and because I only read the instructions from the Docker Web site I didn't notice that this particular package had to be installed. Also I filed a bug for Docker over at Ubuntu because if the system doesn't have required packages it shouldn't accept to create containers of architecture it cannot run.
As long as Docker and the Registry Hub does not yet officially support architectures other than amd64, what we are doing currently is partly a hack. What's more, I don't think Docker will officially support this cross-architecture emulation approach any time soon. So in my opinion, this shouldn't be considered a bug in Docker (nor in Ubuntu).
Also, I am not sure if there is a good general way to automatically detect an image's architecture. The best solution would be to add this as meta information to the image upon creation.
What's more, I don't think Docker will officially support this cross-architecture emulation approach any time soon
Well they claim they do, that's why I submitted a bug. For example, for LXC (I know it's different) in their docs they let you download and display installable templates (sudo lxc-create --template download --name u1
for armhf, i386 and amd64). Why aren't they filtering out things they can't support (or, why don't they check deps from lxc, since they know you shouldn't be able to run armhf containers if you don't have the required qemu package(s) installed)?
So in my opinion, this shouldn't be considered a bug in Docker (nor in Ubuntu).
Yes, I agree. I submitted a bug to Ubuntu because I was using that OS, but they'll probably have to take that upstream and decide what they're going to do about that.
Installed and updated Debian Jessie/Sid, then docker as per docker.com instructions.
Environment info: