Comment by baq

6 years ago

Finally a good use for that raspberry pi idling in the corner

How hard is it to pull non-ARM images from a pi?

  • You can pull another platform's image. If the image is only available for one platform, you can just pull it. If the image is available for multiple platforms, it will pull your platform instead, you need to explicitly specify the digest to get another platform's:

    For example:

    docker pull python@sha256:2d29705d82489bf999b57f9773282eecbcd54873d308a7e0da3adb8a2a6976af

    Pulls the latest Python image for Linux Alpine running on IBM System/z.

    Not what you were asking, but if you have qemu-user-static installed, you can even run Docker images for other platforms. For example:

    docker run -it python@sha256:2d29705d82489bf999b57f9773282eecbcd54873d308a7e0da3adb8a2a6976af

    That's Python for Linux for IBM System/z. Check the CPU architecture:

    import os;os.uname().machine

    Running other platform's images under QEMU is going to be quite slow on a Raspberry Pi, I imagine (I haven't tried it). But of course for this case you don't have to run the image, you just want to pull it, so that doesn't matter.