[HW Accel Support]: Cannot start docker with NVidia device driver #18320
-
Describe the problem you are havingWhen I run sudo docker compose up -d I get error: I'm trying to enable my NVidia Quadro 3000M GPU for use with Frigate on a Dell M6600 Laptop. In all honesty, I originally ignored my GPU when trialling Frigate as I thought my GPU was too old, but NickM's response to my other question, got me to try it: I was unable to load the NVidia Drivers for my GPU on Xubuntu 24.04 (black screen after booting), and found out I needed an earlier kernel. Not ideal, but this system will be offline so, I can live with that for now. So I built a new Xubuntu 20.04 system and was able to load the NVidia 390 drivers, which are the latest for this GPU. Yes, I know it's old, but it's all I've got! All info in this post is from this 20.04 install, to ease any confusion. nvidia-smi outputs the following (sorry, I don't know how to paste this as a fixed width font to preserve the formatting): +-----------------------------------------------------------------------------+ I don't have docker installed as a snap, that was the problem for some other people reporting this error. I also tried the instructions on this page (I thought this would be good since it is for Ubuntu 20.04): I've tried many combinations of NVIDIA_VISIBLE_DEVICES, NVIDIA_DRIVER_CAPABILITIES, device_ids, count and labels, to try and get things working, but I'm at a complete loss. Any suggestions? sudo docker logs frigate I've been though this web page thoroughly: VersionCan't get to WebUI, but it's a recent download Frigate config fileFrigate hasn't loaded yet, so I don't think this is relevant to this issue. But my Frigate config is unchanged from my last post:
https://github.com/blakeblackshear/frigate/discussions/18249 docker-compose file or Docker CLI commandservices:
frigate:
container_name: frigate
restart: unless-stopped
stop_grace_period: 30s
image: ghcr.io/blakeblackshear/frigate:stable
shm_size: "128mb" # updated for my cameras
deploy:
resources:
reservations:
devices:
- driver: nvidia
#device_ids: ['0']
#count: 1
capabilities: [gpu]
volumes:
- ./config:/config
- ./certificates:/etc/letsencrypt/live/frigate:ro
- ./storage:/media/frigate
- type: tmpfs # Optional: 1GB of memory, reduces SSD/SD Card wear
target: /tmp/cache
tmpfs:
size: 1000000000
ports:
- "443:8971"
- "8554:8554" # RTSP feeds Relevant Frigate log outputprompt:~/Frigate$ sudo docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
ghcr.io/blakeblackshear/frigate stable 79c58d895643 5 weeks ago 2.71GB
nvidia/cuda 12.3.1-base-ubuntu20.04 d13839a3c4fb 17 months ago 246MB
prompt:~/Frigate$ sudo docker compose up -d
[+] Running 1/2
✔ Network frigate_default Created 0.1s
⠹ Container frigate Starting 0.2s
Error response from daemon: could not select device driver "nvidia" with capabilities: [[gpu]]
I did have the hello world docker image there too earlier, but during testing, I purged everything and haven't put it back. Relevant go2rtc log outputN/A FFprobe output from your cameraN/A Install methodDocker Compose Object DetectorCPU (no coral) Network connectionWired Camera make and modelN/A Screenshots of the Frigate UI's System metrics pagesCan't get to WebUI Any other information that may be helpfuldocker-compose.yml file for NVidia Test: services: NVIDIA_DRIVER_CAPABILITIES: compute,utilityNVIDIA_DRIVER_CAPABILITIES: compute,video,utility
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
yes, it does appear that the GF104GLM does not support the necessary compute capability, that is very confusing and sorry for the goose chase there |
Beta Was this translation helpful? Give feedback.
yes, it does appear that the GF104GLM does not support the necessary compute capability, that is very confusing and sorry for the goose chase there