question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

not a bug. Im a (docker) noob

See original GitHub issue

Sorry I dont know where else to post this. Im a noob, struggling to get this set up as Im new to docker. I installed docker on my Pi 4. Now what? Against my better judgement I tried sudo docker run blakeblackshear/frigate:0.7.0-amd64

but that errors out with: exec user process caused “exec format error”

If someone feels like doing a video walking us through the installation (on a pi or linux or even windows), I would greatly appreciate it, and it might help draw some attention to this project, which seems awesome, but rather obscure still.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
mattheyscommented, Oct 19, 2020

I will address your questions at the bottom, but first I would like to say the following.

I would recommend looking at Docker Compose as a way of starting these, it makes it very easy to make changes to your container configuration without leaving a whole bunch of dangling containers, also I would install Portainer as well so you can easily see what is running and clean it up nice and easily.

I prefer to run it as a docker container itself but I haven’t documented that and there isn’t an official Arm(64) build for it either so google how to install it with Pip.

Create a folder to keep your docker-compose.yml file in e.g. /opt/docker Put something like this in it, sorry it might not be perfect but you can tweak till it works, I use /opt for docker configuration data and /mnt for data, this way I can just backup my /opt folder and redploy all my containers quickly with their original settings.

version: '3.7'

networks:
  internal:
    name: internal
    driver: bridge

services:
  portainer:
    container_name: portainer
    image: portainer/portainer
    ports:
      - 9000:9000
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
      - /opt/portainer:/data
    networks:
      - internal
    restart: always

  frigate:
    container_name: frigate
    image: blakeblackshear/frigate:0.7.1-aarch64
    privileged: true
    shm_size: '100m'
    networks:
      - internal
    devices:
      - /dev/bus/usb:/dev/bus/usb
    volumes:
      - /opt/frigate/config:/config
      - /dev/dri:/dev/dri
      - /etc/localtime:/etc/localtime:ro
      - /mnt/frigate:/clips
      - type: tmpfs
        target: /cache
        tmpfs:
          size: 75000000 ## 75MB, good for 3 1080p cameras with 10s of cache each, this depends on your setup.
    ports:
      - 5000:5000
    restart: unless-stopped
    healthcheck:
      test: ["CMD", "wget" , "-q", "-O-", "http://localhost:5000"]
      interval: 30s
      timeout: 10s
      retries: 5
      start_period: 3m

Then from the folder containing your docker-compose file run docker-compose up -d --remove-orphans

Now, your assumption about the config file is correct.

I think it will fail over to cpu anyway so you can just leave it as it is.

The /clips and /cache in the config file is about overriding them if you need to, I wouldn’t worry about that and just mount the clips folder outside of the container.

2reactions
mattheyscommented, Oct 19, 2020

Your problem is the fact you are trying to run the AMD64 version on a Raspberry Pi which isn’t x86-64 but Arm based. You need to find out if you have a 32 or 64 bit os and pick either blakeblackshear/frigate:0.7.1-armv7 for 32 bit or blakeblackshear/frigate:0.7.1-aarch64 for 64bit. Your original command would have partly worked if you had the right version, but with no volumes, ports or devices mapped it wouldn’t work very well.

Read more comments on GitHub >

github_iconTop Results From Across the Web

A Docker Tutorial for Beginners
Learn to build and deploy your distributed applications easily to the cloud with Docker.
Read more >
Broken docker image not listed by ps
Realize your error and run docker ps to see if you created a broken docker. Notice that the list is empty. [I'm a...
Read more >
(absolute beginner) I'm learning docker- but I don't know ...
The idea is to move all the boring parts of setting up the developer environment from manual labour to already set up images...
Read more >
Docker Noob - Need Help.......V6 b14
I am close too getting dockers working but when i go to click on the add container the templates are not there... can...
Read more >
Core file may or may not escape docker container ...
I am a docker noob who recently ran into a problem. ... I am not sure if it is bug, but it is...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found