1

Services: Select GPUs using CDI instead of the nvidia runtime

This commit is contained in:
2025-07-11 17:01:53 +02:00
parent ec21502030
commit 1819251cae
5 changed files with 6 additions and 13 deletions

View File

@ -32,8 +32,6 @@
PUID = "1000"; PUID = "1000";
PGID = "1000"; PGID = "1000";
TZ = "Europe/Berlin"; TZ = "Europe/Berlin";
# NVIDIA_VISIBLE_DEVICES = "all";
# NVIDIA_DRIVER_CAPABILITIES = "all";
}; };
environmentFiles = [ environmentFiles = [
@ -41,8 +39,9 @@
]; ];
extraOptions = [ extraOptions = [
# "--privileged"
# "--device=nvidia.com/gpu=all"
"--net=behind-nginx" "--net=behind-nginx"
# "--gpus=all"
]; ];
}; };
} }

View File

@ -23,7 +23,6 @@
environment = {}; environment = {};
extraOptions = [ extraOptions = [
# "--gpus=all"
"--net=behind-nginx" "--net=behind-nginx"
]; ];
}; };
@ -58,7 +57,6 @@
}; };
extraOptions = [ extraOptions = [
# "--gpus=all"
"--net=behind-nginx" "--net=behind-nginx"
]; ];
}; };

View File

@ -97,8 +97,8 @@
}; };
extraOptions = [ extraOptions = [
"--privileged" # "--privileged"
"--gpus=all" "--device=nvidia.com/gpu=all"
"--net=behind-nginx" "--net=behind-nginx"
]; ];
}; };

View File

@ -37,14 +37,11 @@
PUID = "3000"; PUID = "3000";
PGID = "3000"; PGID = "3000";
TZ = "Europe/Berlin"; TZ = "Europe/Berlin";
NVIDIA_VISIBLE_DEVICES = "all";
NVIDIA_DRIVER_CAPABILITIES = "all";
}; };
extraOptions = [ extraOptions = [
"--privileged" # "--privileged"
"--gpus=all" "--device=nvidia.com/gpu=all"
"--net=behind-nginx" "--net=behind-nginx"
]; ];
}; };

View File

@ -98,7 +98,6 @@
}; };
extraOptions = [ extraOptions = [
# "--gpus=all"
"--net=behind-nginx" "--net=behind-nginx"
]; ];
}; };