Created
August 21, 2018 12:55
-
-
Save EniasCailliau/0f9d311d6773b4849cf8891ce1a0feea to your computer and use it in GitHub Desktop.
Activate nvidia-docker2 as the default Docker runtime
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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