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