From 42bf2199650b1939da0d81b7e0ad088efb748f44 Mon Sep 17 00:00:00 2001 From: poprhythm Date: Sat, 31 Jan 2026 20:04:59 +0000 Subject: [PATCH] Fix glances GPU access using Ubuntu image and nvidia runtime Alpine-based image (latest-full) is incompatible with NVIDIA libraries due to musl/glibc mismatch. Switch to ubuntu-latest-full and use runtime: nvidia for GPU monitoring support. --- glances/docker-compose.yaml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/glances/docker-compose.yaml b/glances/docker-compose.yaml index 37f2404..fc87ba4 100644 --- a/glances/docker-compose.yaml +++ b/glances/docker-compose.yaml @@ -1,21 +1,20 @@ -version: '3' - services: glances: container_name: glances - image: 'nicolargo/glances:latest-full' + image: 'nicolargo/glances:ubuntu-latest-full' restart: unless-stopped privileged: true - runtime: nvidia ports: - 61208-61209:61208-61209 environment: - TZ=${TZ} - NVIDIA_VISIBLE_DEVICES=all + - NVIDIA_DRIVER_CAPABILITIES=compute,utility - "GLANCES_OPT=-C /glances/conf/glances.conf -w" volumes: - '/var/run/docker.sock:/var/run/docker.sock:ro' - '/run/user/1000/podman/podman.sock:/run/user/1000/podman/podman.sock:ro' - /srv/glances/glances.conf:/glances/conf/glances.conf pid: host + runtime: nvidia \ No newline at end of file