Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 635
Rutger Hofste Avatar asked May 22 '18 07:05

Rutger Hofste


1 Answers

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.

like image 116
3XX0 Avatar answered Oct 06 '22 18:10

3XX0