Docker Community Forums

Share and learn in the Docker community.

Docker image compatibility between X86 and ARM


(Bortek) #1

Is this at all possible?

I would to fetch and run docker image on X86. Add some things to it and then transfer that image to Docker on Raspberry Pi, which is a ARM plattform. Will this work?


(Nathan Le Claire) #2

I don’t think this is possible today because all of the binaries etc. bundled with the x86 image being specific to x86.


(Bortek) #3

Even if I use an emty image as a base and build my own wordpress on it?


(Bortek) #4

Can I somehow separate binaries of WordPress from html/css/etc files and the database and make this possible?

Like I put html files outside of container and mount into the container.


(Nathan Le Claire) #5

It might be possible through a pipeline of hacks but in general (at time of writing) I would advise you to docker build on ARM if you’re targeting ARM for a runtime. The one exception being if your program is something easily cross-compilable for another arch like Golang. However you specifically mention Wordpress here, which is going to require PHP, Apache etc. that run on ARM.

Hypriot might have some content that can help you get started: http://blog.hypriot.com/getting-started-with-docker-on-your-arm-device/


(Bortek) #6

Yes I specifically want it for WP. I realise now that it will be quite difficult to achieve what I want. Found this article about persistent storage which perhaps is possible to use to store the WP data separate from the binaries and have two separate containers one one X86 and another on ARM and then just move the data from one to another.

https://cloud.google.com/container-engine/docs/tutorials/persistent-disk/#create_your_persistent_disks

But I think I will just stick on ARM with Hypriot if I manage to run WP on it. Thanks!