This change adds the --runtime flag to the generated docker run command, in order to explicitly support non-default runtimes like nvidia.
Note that no magic is done to determine the default runtime (via /etc/docker/daemon.json or otherwise) - rekcod will now always blindly include the --runtime flag as long as the Runtime field is defined in the docker inspect output.
This means newly generated docker run commands will probably contain --runtime runc from existing containers that did not specify a different runtime.
Fixes #36.
This change adds the
--runtime
flag to the generateddocker run
command, in order to explicitly support non-default runtimes likenvidia
.Note that no magic is done to determine the default runtime (via
/etc/docker/daemon.json
or otherwise) - rekcod will now always blindly include the--runtime
flag as long as theRuntime
field is defined in thedocker inspect
output.This means newly generated
docker run
commands will probably contain--runtime runc
from existing containers that did not specify a different runtime.