Skip to content

Instantly share code, notes, and snippets.

@EniasCailliau
Created August 21, 2018 12:55
Show Gist options
  • Save EniasCailliau/0f9d311d6773b4849cf8891ce1a0feea to your computer and use it in GitHub Desktop.
Save EniasCailliau/0f9d311d6773b4849cf8891ce1a0feea to your computer and use it in GitHub Desktop.
Activate nvidia-docker2 as the default Docker runtime
cat <<"EOF" > /etc/docker/daemon.json
{
"default-runtime": "nvidia",
"runtimes": {
"nvidia": {
"path": "/usr/bin/nvidia-container-runtime",
"runtimeArgs": []
}
}
}
EOF
pkill -SIGHUP dockerd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment