removed nvidia default runtime

This commit is contained in:
2026-01-14 10:36:44 +01:00
parent bcb0eee096
commit 2cacd12534

View File

@@ -2,7 +2,7 @@ services:
yocto: yocto:
image: hub.anxietyprime.de/yocto:latest image: hub.anxietyprime.de/yocto:latest
container_name: yocto container_name: yocto
runtime: nvidia # Enable GPU support #runtime: nvidia # Enable GPU support
network_mode: host network_mode: host
devices: devices:
- /dev/dri - /dev/dri
@@ -15,10 +15,10 @@ services:
environment: environment:
- DISPLAY=${DISPLAY} - DISPLAY=${DISPLAY}
- XDG_RUNTIME_DIR=${XDG_RUNTIME_DIR} - XDG_RUNTIME_DIR=${XDG_RUNTIME_DIR}
- NVIDIA_VISIBLE_DEVICES=all # - NVIDIA_VISIBLE_DEVICES=all
- NVIDIA_DRIVER_CAPABILITIES=all # - NVIDIA_DRIVER_CAPABILITIES=all
- LIBGL_ALWAYS_INDIRECT=1 # - LIBGL_ALWAYS_INDIRECT=1
- __GLX_VENDOR_LIBRARY_NAME=nvidia # - __GLX_VENDOR_LIBRARY_NAME=nvidia
volumes: volumes:
# display (if needed) # display (if needed)
- /tmp/.X11-unix:/tmp/.X11-unix - /tmp/.X11-unix:/tmp/.X11-unix
@@ -39,4 +39,4 @@ services:
entrypoint: /home/yocto/ws/scripts/docker-entrypoint.sh entrypoint: /home/yocto/ws/scripts/docker-entrypoint.sh
stdin_open: true # equivalent to -it stdin_open: true # equivalent to -it
tty: true # equivalent to -it tty: true # equivalent to -it
restart: always restart: always