mpromonet / webrtc-streamer

WebRTC streamer for V4L2 capture devices, RTSP sources and Screen Capture
https://webrtcstreamer.agreeabletree-365b9a90.canadacentral.azurecontainerapps.io/?layout=2x2
The Unlicense
2.92k stars 595 forks source link

Raspberry Pi 3 B+ docker image not working #191

Closed temsa closed 5 years ago

temsa commented 5 years ago

Describe the bug The image downloaded by a Rpi3B+ seems not to be using the proper architecture (32bit HypriotOS):

$> uname -a
Linux Pluto 4.14.34-hypriotos-v7+ #1 SMP Sun Apr 22 14:57:31 UTC 2018 armv7l GNU/Linux

To Reproduce Steps to reproduce the behavior:

  1. check the architecture reported by kernel:
    $> uname -a
    Linux Pluto 4.14.34-hypriotos-v7+ #1 SMP Sun Apr 22 14:57:31 UTC 2018 armv7l GNU/Linux
  2. pull the image
    $> docker pull mpromonet/webrtc-streamer
    Using default tag: latest
    latest: Pulling from mpromonet/webrtc-streamer
    32802c0cfa4d: Already exists
    da1315cffa03: Already exists
    fa83472a3562: Already exists
    f85999a86bef: Already exists
    305b24214bff: Already exists
    4c7c13e63f4e: Already exists
    f2ecd939eba8: Pull complete
    8e3a66c3cb13: Pull complete
    64212b4223d1: Pull complete
    15185021f6db: Pull complete
    Digest: sha256:7e62eddcd2ca4e5652fb1fc9f5e901f8698f2607443e2ac5b11b8dbd504fa192
    Status: Downloaded newer image for mpromonet/webrtc-streamer:latest
  3. run the image
    $> docker run -p 8000:8000 -it mpromonet/webrtc-streamer -h
  4. See error standard_init_linux.go:190: exec user process caused "exec format error"

Expected behavior No error, webrtc-streamer help output appears

Desktop (please complete the following information):

Additional context @mpromonet I had the same issue with some other images not maintained by you, but not all.

mpromonet commented 5 years ago

Hi Florian,

The docker image is for achitechture x86_64, and then doesnot run on a ARM architechture. In order to run on raspberry, the easiest is to install the executable from the tgz https://github.com/mpromonet/webrtc-streamer/releases.

Maybe one day I will publish ARM docker, maybe not...

Best Regards, Michel.

mpromonet commented 5 years ago

Hi Florian, I pushed a container for raspberry on registry.gitlab.com/mpromonet/webrtc-streamer:rpi. After some adptation to the build pipelines I will pushed it as a multi arch to dockerhub. Best Regards, Michel.

temsa commented 5 years ago

Thanks a lot !

mpromonet commented 5 years ago

Now it should work simply with mpromonet/webrtc-streamer