What is the best way to launch nvidia-docker containers using Marathon? I know Marathon has two ways to launch containers which is basically either providing a shell cmd as an argument in the JSON or by specifying the parameters using the container field. However I haven't found a way to specify launching containers with nvidia-docker versus regular docker other than the "cmd" field in the JSON.
Also what are the downsides to launching using the cmd as in argument so something like this:
{
"id": "myimage",
"cmd": "nvidia-docker run -it myimage bash",
"cpus": 1,
"mem": 512.0,
"instances": 3,
}
Versus using the "container" field:
{
"id": "myimage",
"cpus": 1,
"mem": 512.0,
"instances": 3,
"container": {
"type": "DOCKER",
"docker": {
"image": "myimage",
"network": "HOST"
}
}
}