-
Notifications
You must be signed in to change notification settings - Fork 456
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error starting up on Raspberry Pi 3 #51
Comments
The image is built on amd64, at this time docker hub does not support arm so it would be unable to run on raspberry pi. You might be able to build it on raspberry by changing the FROM line to match an arm image pi but I don't have a working raspberry pi to test building on at the moment. |
Makes sense. But is there anything recommend I can look into to see if I can fix it up and get running on arm? I'm more than happy to build the image myself on arm, just need to get past this error. 😄 |
Docker hub supports ARM images (see for instance this group: https://hub.docker.com/u/armhf/) and recently Docker got better support for multi-arch images (see https://developer.ibm.com/linuxonpower/2017/07/27/create-multi-architecture-docker-image/). It is still some extra effort in building such an image, but then the same image can be used for different architecture (AFAIU there is one image for amd64, one for arm and another one with just the manifest and the pointers to the other images.). |
@jcberthon docker hub only supports pre built arm images, I lack an arm system to build them on. At the very least i'd have to get docker running under an arm emulator to build those images. |
alternatively https://resin.io/blog/building-arm-containers-on-any-x86-machine-even-dockerhub/ something like that might work to build on the hub... |
@sergeifilippov try the beta branch and change |
@sergeifilippov oh you would also need to comment out the |
Alternatively try building the new |
@sergeifilippov and just to overload you with options you could try jacobalberty/unifi:arm32v7-beta on the docker hub, its running unifi 5.5.20, if I can get a decent build going with the cross compile I may start tagging out regular releases from it. I have no way to test it at the moment though, I'll see if I can get qemu going to test it in in a few hours. |
Thanks everyone! I was able to run it on my RPI3 using |
I'm trying to run the docker image on a Raspberry Pi 3 but
docker run
anddocker build
both fail with:standard_init_linux.go:178: exec user process caused "exec format error"
System details
Errors during
docker build
On running
docker build -t unifi-controller-arm:0.0.1 ./Dockerfile
I get the following error:standard_init_linux.go:178: exec user process caused "exec format error"
Any ideas?
The text was updated successfully, but these errors were encountered: