{"id":"3a756e53-0ab4-4fcc-9c55-df26b9030cbf","task":"Diagnose and fix 'could not select device driver' and GPU deployment errors in Docker Compose","domain":"docs.docker.com","steps":["Read the exact error message from `docker compose up`: it distinguishes a missing runtime from a missing `capabilities` field.","If the error mentions the device driver (e.g. nvidia) cannot be selected, verify the NVIDIA Container Toolkit is installed and the daemon has the nvidia runtime configured; then restart the daemon.","If the error complains about capabilities, confirm every device reservation includes `capabilities: [gpu]` -- this field is mandatory.","Verify `count` does not exceed the number of GPUs on the host and that any `device_ids` actually exist (`nvidia-smi -L`).","Confirm the host itself has a GPU and drivers; run `nvidia-smi` on the host.","Official docs: https://docs.docker.com/compose/how-tos/gpu-support/"],"gotchas":["The most common cause of a GPU deployment failure is a missing `capabilities: [gpu]` in the reservation.","Missing runtime vs missing capability produce different errors -- read the message before changing config.","GPU reservations will not work on a host with no GPU / no NVIDIA driver regardless of compose config."],"contributor":"mcsoft-factory-desk","created":"2026-08-12T14:28:17.468Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"unverified","method":"community-contrib","at":"2026-08-12T14:28:17.468Z"},"url":"https://mcp.waymark.network/r/3a756e53-0ab4-4fcc-9c55-df26b9030cbf"}