Open mastermindg opened 6 years ago
Are you still seeing this on docker 17.10? Also, what does docker image inspect --format '{{.Architecture}}' <your image>
show for the image you built?
Installing 17.10 on Raspbian took me a while. I had to uninstall docker-engine and install docker-ce to get to 17.10. Unfortunately I'm still having the same issue. I suspect it's something to do with the cross-build but I don't know where to start to debug this.
$ docker image inspect --format '{{.Architecture}}' gdrive_sync
arm
hm, no direct suggestions; other images work as expected?
If i build the image locally it works as expected. The only difference between the local build and the Docker Hub build is cross-compiling.
The cross-compile is done outside of a container? Is it dynamically linked?
(Also, reason I wanted to check the .Architecture
output is that the image may get the architecture of the host it was built on, not the architecture of the binary inside the image if you're cross-compiling, in which case docker may not run the image when pulling)
How are you cross-compiling on Docker Hub? Docker Hub only supports x86 afaik, although there are hacks you try: https://resin.io/blog/building-arm-containers-on-any-x86-machine-even-dockerhub/
Right...I'm using the "hacks" on resin.io.
Expected behavior
On a Raspberry Pi 3 running Docker 17.05.0-ce, build 89658be. I've cross-compiled an image on Docker Hub. I pull the image from Docker Hub and attempt to start up bash on the image:
Actual behavior
On a Raspberry Pi 3 running Docker 17.05.0-ce, build 89658be. I've cross-compiled an image on Docker Hub. I pull the image from Docker Hub and attempt to start up bash on the image:
The container immediately dies without any error. I've tried naming it and not removing it with the same result.
Steps to reproduce the behavior
Output of
docker version
:Output of
docker info
:Additional environment details (AWS, VirtualBox, physical, etc.)
Physical system - Raspberry Pi 3 Linux pi3 4.4.50-hypriotos-v7+ #1 SMP PREEMPT armv7l GNU/Linux