Wichtige Linux Befehle

Docker Installation - Cuda-Treiber und Nvidia - Treiber

Check ob die Grafikkarte erkannt wird: im Terminal eingeben:  
nvidia-smi

ausgabe: 

vitruvian@pop-os:~/0_docker/8080_ki$ nvidia-smi
Sat Feb  7 16:51:44 2026       
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 580.119.02             Driver Version: 580.119.02     CUDA Version: 13.0     |
+-----------------------------------------+------------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id          Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |           Memory-Usage | GPU-Util  Compute M. |
|                                         |                        |               MIG M. |
|=========================================+========================+======================|
|   0  NVIDIA GeForce RTX 5090        Off |   00000000:02:00.0 Off |                  N/A |
|  0%   43C    P8             27W /  600W |      15MiB /  32607MiB |      0%      Default |
|                                         |                        |                  N/A |
+-----------------------------------------+------------------------+----------------------+

+-----------------------------------------------------------------------------------------+
| Processes:                                                                              |
|  GPU   GI   CI              PID   Type   Process name                        GPU Memory |
|        ID   ID                                                               Usage      |
|=========================================================================================|
|    0   N/A  N/A            6548      G   /usr/lib/xorg/Xorg                        4MiB |
+-----------------------------------------------------------------------------------------+


Check ob im Container Nvidia erkannt wird: Wenn Toolkit nicht vorhanden ist, dann wird es installiert.. 

docker run --rm --gpus all nvidia/cuda:13.0.0-base-ubuntu24.04 nvidia-smi

Ausgabe:

vitruvian@pop-os:~/0_docker/8080_ki$ docker run --rm --gpus all nvidia/cuda:13.0.0-base-ubuntu24.04 nvidia-smi
Unable to find image 'nvidia/cuda:13.0.0-base-ubuntu24.04' locally
13.0.0-base-ubuntu24.04: Pulling from nvidia/cuda
32f112e3802c: Pull complete 
9c9b39ad83d5: Pull complete 
0acb0bb33f99: Pull complete 
ddc61996788f: Pull complete 
13e8f87efde8: Pull complete 
Digest: sha256:6e43a6b02e5f16e4a715953be8b29c40acbe84aed11a61357ef0fc899967fbd9
Status: Downloaded newer image for nvidia/cuda:13.0.0-base-ubuntu24.04
Sat Feb  7 15:54:05 2026       
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 580.119.02             Driver Version: 580.119.02     CUDA Version: 13.0     |
+-----------------------------------------+------------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id          Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |           Memory-Usage | GPU-Util  Compute M. |
|                                         |                        |               MIG M. |
|=========================================+========================+======================|
|   0  NVIDIA GeForce RTX 5090        Off |   00000000:02:00.0 Off |                  N/A |
|  0%   43C    P8             28W /  600W |      15MiB /  32607MiB |      0%      Default |
|                                         |                        |                  N/A |
+-----------------------------------------+------------------------+----------------------+

+-----------------------------------------------------------------------------------------+
| Processes:                                                                              |
|  GPU   GI   CI              PID   Type   Process name                        GPU Memory |
|        ID   ID                                                               Usage      |
|=========================================================================================|
|  No running processes found                                                             |
+-----------------------------------------------------------------------------------------+

2) Check: NVIDIA Container Toolkit installiert & runtime vorhanden?