From 725d982a98ee39bbfbf7dd7a8e27f179ad5ecc10 Mon Sep 17 00:00:00 2001 From: Joey Hafner Date: Mon, 16 Oct 2023 22:42:01 -0700 Subject: [PATCH] #101 Explicitly grant GPU access to container Fix compose service name --- homelab/fighter/config/kasm/docker-compose.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/homelab/fighter/config/kasm/docker-compose.yml b/homelab/fighter/config/kasm/docker-compose.yml index e90236cd..c9fb8a65 100644 --- a/homelab/fighter/config/kasm/docker-compose.yml +++ b/homelab/fighter/config/kasm/docker-compose.yml @@ -1,9 +1,16 @@ version: '3' services: - nginx: + kasm: image: linuxserver/kasm:latest container_name: kasm_kasm privileged: true + deploy: + resources: + reservations: + devices: + - driver: nvidia + count: all + capabilities: [gpu] environment: - KASM_PORT=443 - NVIDIA_VISIBLE_DEVICES=all