pducharme / UniFi-Video-Controller

Docker for Unifi-Video Controller (Ubiquiti Networks)
200 stars 105 forks source link

Unable to run on ARM-architecture #168

Closed Orscheler closed 4 years ago

Orscheler commented 4 years ago

I'm trying to run this image on a system with ARM-architecture, however the image seems not to be compatible with this. While trying to start the container, following error occurs:

pi@raspberrypi:~$ sudo docker run \
>         --name unifi-video \
>         --cap-add SYS_ADMIN \
>         --cap-add DAC_READ_SEARCH \
>         -p 10001:10001 \
>         -p 1935:1935 \
>         -p 6666:6666 \
>         -p 7080:7080 \
>         -p 7442:7442 \
>         -p 7443:7443 \
>         -p 7444:7444 \
>         -p 7445:7445 \
>         -p 7446:7446 \
>         -p 7447:7447 \
>         -v /tmp/:/var/lib/unifi-video \
>         -v /tmp/:/var/lib/unifi-video/videos \
>         -e TZ=America/Los_Angeles \
>         -e PUID=99 \
>         -e PGID=100 \
>         -e DEBUG=1 \
>         pducharme/unifi-video-controller
\
standard_init_linux.go:211: exec user process caused "exec format error"
pi@raspberrypi:~$ sudo docker version
Client: Docker Engine - Community
 Version:           19.03.5
 API version:       1.40
 Go version:        go1.12.12
 Git commit:        633a0ea
 Built:             Wed Nov 13 07:37:22 2019
 OS/Arch:           linux/arm
 Experimental:      false

Server: Docker Engine - Community
 Engine:
  Version:          19.03.5
  API version:      1.40 (minimum version 1.12)
  Go version:       go1.12.12
  Git commit:       633a0ea
  Built:            Wed Nov 13 07:31:17 2019
  OS/Arch:          linux/arm
  Experimental:     false
 containerd:
  Version:          1.2.10
  GitCommit:        b34a5c8af56e510852c35414db4c1f4fa6172339
 runc:
  Version:          1.0.0-rc8+dev
  GitCommit:        3e425f80a8c931f88e6d94a8c831b9d5aa481657
 docker-init:
  Version:          0.18.0
  GitCommit:        fec3683
pi@raspberrypi:~$ cat /proc/version 
Linux version 4.19.75-v7+ (dom@buildbot) (gcc version 4.9.3 (crosstool-NG crosstool-ng-1.22.0-88-g8460611)) #1270 SMP Tue Sep 24 18:45:11 BST 2019
fryfrog commented 4 years ago

That is correct, their packages don't support arm. I'm not sure if they have arm packages, but if they do it seems possible they could work. If you figure it out, feel free to submit a pull request.

Edit: You can see in the Dockerfile that we're installing the amd64 .deb, /unifi-video.Ubuntu18.04_amd64.v${version}.deb.