docker run --gpus all myimage

Category: Docker

docker run --gpus all myimage

Run a container with GPU access

Exposes all host GPUs to the container via the NVIDIA container runtime. Requires nvidia-container-toolkit on the host, or the flag does nothing. Check availability with docker info.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.