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.

docs error : Unsupported config option for services.frigate: 'runtime'

See original GitHub issue

Following the docs on this page don’t work. https://blakeblackshear.github.io/frigate/configuration/nvdec/

# docker-compose up
ERROR: The Compose file './docker-compose.yaml' is invalid because:
Unsupported config option for services.frigate: 'runtime'
# cat /etc/docker/daemon.json
{
    "runtimes": {
        "nvidia": {
            "path": "nvidia-container-runtime",
            "runtimeArgs": []
        }
    }
}

version: '3.6'

services:

  frigate:
    container_name: frigate
    restart: unless-stopped
    privileged: true
    #image: blakeblackshear/frigate:stable-amd64
    image: blakeblackshear/frigate:stable-amd64nvidia
    runtime: nvidia
    environment:
      - NVIDIA_VISIBLE_DEVICES=all
      - NVIDIA_DRIVER_CAPABILITIES=compute,utility,video

    volumes:
      #- /dev/bus/usb:/dev/bus/usb
      - /etc/localtime:/etc/localtime:ro
      - ./config:/config
      - ./clips:/media/frigate/clips
      - ./recordings:/media/frigate/recordings
      - type: tmpfs # Optional: 1GB of memory, reduces SSD/SD Card wear
        target: /tmp/cache
        tmpfs:
          size: 1000000000
    ports:
      - '5000:5000'
      - '1935:1935' # RTMP feeds

    environment:
      FRIGATE_RTSP_PASSWORD: 'password'

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
ozettcommented, Aug 14, 2021

running ubuntu 20.04, installed docker & docker-compose with apt install and docker-compose.yml version set highest possible is 3.8.

root@ub20-frigate4:/usr/src# docker-compose -v
docker-compose version 1.25.0, build unknown
root@ub20-frigate4:/usr/src# cat /etc/issue
Ubuntu 20.04.2 LTS \n \l
root@ub20-frigate4:/usr/src# docker -v
Docker version 20.10.7, build 20.10.7-0ubuntu1~20.04.1

still that error…

i will see how to update docker and docker-compose to higher versions to overcome the error…

edit: i went to: https://docs.docker.com/compose/install/#install-compose did the linux-curl install and have:

docker-compose version 1.29.2, build 5becea4c

new error:

root@ub20-frigate4:/usr/src# docker-compose down && docker-compose up -d && docker logs frigate -f
Removing network src_default
Creating network "src_default" with the default driver
Building frigate
unable to prepare context: unable to evaluate symlinks in Dockerfile path: lstat /usr/src/Dockerfile: no such file or directory
ERROR: Service 'frigate' failed to build : Build failed
root@ub20-frigate4:/usr/src# docker --version
Docker version 20.10.7, build 20.10.7-0ubuntu1~20.04.1
root@ub20-frigate4:/usr/src#

maybe docker update necessary too…

went to: https://docs.docker.com/engine/install/ubuntu/ and have:

root@ub20-frigate4:/usr/src# docker -v
Docker version 20.10.8, build 3967b7d

the runtime-statement now accepted, my patch for shm-size not working after docker-compose update. but i will try without it

#version: "3.9"
version: "3.8"
services:
  frigate:
    container_name: frigate
    privileged: true # this may not be necessary for all setups
    #restart: unless-stopped
    # restart: on-failure
    #restart: no

    ## image: blakeblackshear/frigate:<specify_version_tag>
    # normal
    #image: blakeblackshear/frigate:stable-amd64
    # nvidia
    image: blakeblackshear/frigate:stable-amd64nvidia
    runtime: nvidia
#    build:
#      shm_size: '2G'
#      context: .
    devices:
      - /dev/bus/usb:/dev/bus/usb
      - /dev/dri/renderD128 # for intel hwaccel, needs to be updated for your ha                                                                                                                                                                        rdware
    volumes:
      - /etc/localtime:/etc/localtime:ro
      - /usr/src/frigate.yml:/config/config.yml:ro
      - /usr/src/media:/media/frigate
      - type: tmpfs # Optional: 1GB of memory, reduces SSD/SD Card wear
        target: /tmp/cache
        tmpfs:
          size: 256000000000    # ~64gb     shmz?
          #size: 16000000000 # ~16gb
          #size: 1000000000
    ports:
      - "5000:5000"
      - "1935:1935" # RTMP feeds
    environment:
      #FRIGATE_RTSP_PASSWORD: "password"
      - NVIDIA_VISIBLE_DEVICES=all
      - NVIDIA_DRIVER_CAPABILITIES=compute,utility,video

    #environment:


      #- <path_to_config_file>:/config/config.yml:ro
      #- <path_to_directory_for_media>:/media/frigate
0reactions
ozettcommented, Dec 4, 2021

glad to hear that my fiddlings helped somebody 🎉 🤝

Read more comments on GitHub >

github_iconTop Results From Across the Web

docker-compose : Unsupported config option for services ...
Since this is the first result on Googling "docker-compose Unsupported config option for services", I would like to add that the most common...
Read more >
General Discussions - Docker Community Forums
Can someone please help? I am getting an error of: ./docker-compose.yml is invalid because: Unsupported config option for services.app: 'db'.
Read more >
FAQ - Coder One
ERROR : The Compose file './docker-compose.yml' is invalid because: Unsupported config option for services.agent-b: 'extends'.
Read more >
Larevel Sail up. Docker Unsupported config option ... - Laracasts
Docker Unsupported config option for services.meilisearch: 'platform'. I am trying run the example by documentation The first step "curl -s "https://laravel.
Read more >
Hardware Acceleration | Jellyfin
Select a valid hardware acceleration option from the drop-down menu, indicate a device if applicable, and check Enable hardware encoding to enable encoding...
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