Editing
Tutorials:Install the nVidia docker system
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Making nvidia-docker the default runtime (optional) == You will note that you always had to select "--runtime=nvidia" for every docker command which runs a GPU container. This is fine in principle, but if you do it on a regular basis (or if you want to set up your own kubernetes minikube for testing), you might wish to make this the default. For this, edit /etc/docker/daemon.json to look as follows (it will also configure a larger amount of memory, which is recommended for tensorflow): <syntaxhighlight lang="json"> { "default-runtime": "nvidia", "default-shm-size": "1g", "runtimes": { "nvidia": { "path": "nvidia-container-runtime", "runtimeArgs": [] } } } </syntaxhighlight> After you did this, you need to restart your docker daemon for the changes to go into effect: <syntaxhighlight lang="bash"> sudo systemctl restart docker </syntaxhighlight> Note that it remembers all running containers and will restart them once it is back up. You are now ready for the next tutorial, which will show you how to use the nVidia GPU cloud images as a basis for your own applications. [[Category:Tutorials]]
Summary:
Please note that all contributions to Collective Computational Unit may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
CCU:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Collective Computational Unit
Main page
Projects
Tutorials
GPU Cluster
Core Facilitys
Mediawiki
Recent changes
Random page
Help
Tools
What links here
Related changes
Page information