Rutger Hofste
Rutger Hofste

Reputation: 4373

nvidia-docker run vs docker run --runtime=nvidia

Is there a difference between:

nvidia-docker run

and

docker run --runtime=nvidia ?

In the official docs they use the latter but I've seen the former in other tutorials online.

Upvotes: 11

Views: 9875

Answers (1)

3XX0
3XX0

Reputation: 1325

docker run --runtime=nvidia is only available since nvidia-docker v2.

Both commands are equivalent with nvidia-docker v2, the former is a script provided for backward compatibility with nvidia-docker v1.

Upvotes: 9

Related Questions