Summary: I am trying to create a base image from an Odroid Ubuntu image. I install the Ubuntu image on an SD card, then create a tgz from the entire root filesystem. I cat | import the tgz into a new docker image, and finally, try to run a bash shell from that image. The error I get from that is:
Error response from daemon: Cannot start container 03…1e: [8] System error: exec format error
Details:
- Host computer is 64-bit mac, El Capitain
- Docker version 1.8.3, build f4bf5c7
- docker-machine: Linux default 4.1.10-boot2docker #1 SMP Mon Oct 12 18:36:49 UTC 2015 x86_64 GNU/Linux
- Odroid img: http://odroid.in/ubuntu_14.04lts/ubuntu-14.04.3lts-lubuntu-odroid-c1-20151020.img.xz (Linux odroid 3.10.80-131 #1 SMP PREEMPT Thu Oct 15 19:53:29 BRT 2015 armv7l armv7l armv7l GNU/Linux)
- TAR cmd: tar -cvpzf backup.tar.gz --exclude=/backup.tar.gz --one-file-system /
- image creation: cat backup.tar.gz | docker import - odroidimg
I read all of the internet when it comes to the particular error above. There’s one enlightening thread on a docker github issue, but it doesn’t provide a solution. One guess I had is that the 64-bit docker-machine can’t run a 32-bit docker image. There are other docker machines here: https://github.com/docker/machine/releases. That doesn’t make a ton of sense, though, that I would need a 32-bit docker machine.
Any ideas? If I missed any details, please ask away.