GPU passthrough
The image ships the Vulkan loader and Mesa drivers for AMD and Intel. NVIDIA drivers are injected
from the host by NVIDIA Container Toolkit. Without a GPU, the container falls back to Mesa’s
software rasterizer (llvmpipe).
Passthrough accelerates server work: RAW decode, source preparation, exports, edited thumbnails, and AI models. Browser previews use the client device’s GPU (see Rendering).
AMD or Intel (Linux)
Section titled “AMD or Intel (Linux)”-
Find the render node and its numeric group ID on the host:
Terminal window stat -c '%n group %g (%G)' /dev/dri/renderD* -
Add the device and numeric GID to
compose.yaml(always use the number — the container runs as UID10001and resolves group names inside the container, not the host):services:immich-edit:devices:- /dev/dri:/dev/drigroup_add:- "105" -
Recreate the container:
Terminal window docker compose up -d
NVIDIA (Linux)
Section titled “NVIDIA (Linux)”-
Install the host NVIDIA driver and NVIDIA Container Toolkit configured for Docker.
-
Add the GPU reservation and
graphicscapability (the defaultutility,computeomits Vulkan):services:immich-edit:environment:NVIDIA_DRIVER_CAPABILITIES: graphics,utilitydeploy:resources:reservations:devices:- driver: nvidiacount: 1capabilities: [gpu] -
Recreate and verify:
Terminal window docker compose up -ddocker compose exec immich-edit nvidia-smi
Without Compose
Section titled “Without Compose”--device /dev/dri:/dev/dri --group-add 105--gpus all -e NVIDIA_DRIVER_CAPABILITIES=graphics,utilityDocker on macOS cannot pass Metal through its Linux VM. Run natively to use Metal (see Deployment).
Verify
Section titled “Verify”Open Settings > Diagnostics > Server:
| Row | Hardware GPU | Software fallback |
|---|---|---|
| Renderer active | gpu |
gpu or cpu |
| GPU adapter | Your card name | llvmpipe (...) |
| GPU type | Not shown | software rasterizer (no hardware GPU found) |
If the card is missing, inspect permissions inside the container:
docker compose exec immich-edit ls -l /dev/dridocker compose exec immich-edit id