QuestionQ44

VerifiedPhysical Layer Management

A user needs to limit a Docker container so it can use only GPUs 0 and 2.

Which command accomplishes this?

Explanation

Docker’s GPU device selector uses the --gpus option with device= followed by a comma-separated list of GPU indices. The corresponding syntax is --gpus '"device=0,2"', which exposes only GPU devices 0 and 2 to the container. NVIDIA documents this as the method for starting a container on specific GPUs.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!