Building image on Mac to run on RPi

Expected behaviour

I would like to build an image on the Mac to run on a RPi

Actual behaviour

Command not found error on RPi

Please can someone explain how to get this to work this way around?

Can you be more specific please? Are you using hypriot’s docker image for raspi and trying to build docker containers to be used as docker containers inside of the raspi? Or use docker to build a raspi image? The second question is something I’m curious about actually, but I don’t know if that’s possible. The first question should be possible (building containers that can run on raspi) but I haven’t attempted it yet.

Yes, using Docker.app new cross CPU capabilities. I wanted to create this on the Mac:

FROM resin/armv7hf-debian

RUN apt-get update && apt-get install -y --no-install-recommends
ca-certificates
curl
wget
&& rm -rf /var/lib/apt/lists/*

Then export the image & import on the RPi where I have Docker 1.11 running. However, it doesn’t work. I need to know what I need to do to get qemu to work this way.

“it doesn’t work” isn’t very specific, and I have no idea what “new cross cpu capabilities” you are referring to (binfmt_misc support, maybe?). But to run ARM on x86 you’ll need to use something like QEMU.