Use runtime nvidia
See original GitHub issueHi all,
I’m trying to use docker spawner with runtime nvidia set in order attach GPUs installed on my JUPYTERHUB server.
I tried with the following snippet in my jupyterhub_config.py file but I was unlucky until now.
c.DockerSpawner.extra_create_kwargs.update({ 'runtime': 'nvidia' })
Can you help me understand how to set it up properly?
Thanks.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:7
- Comments:26 (5 by maintainers)
Top Results From Across the Web
NVIDIA Container Runtime
NVIDIA Container Runtime is a GPU aware container runtime, compatible with the Open Containers Initiative (OCI) specification used by Docker, CRI-O, ...
Read more >NVIDIA container runtime - GitHub
To register the nvidia runtime, use the method below that is best suited to your environment. You might need to merge the new...
Read more >cuda - Add nvidia runtime to docker runtimes - Stack Overflow
1. Install latest driver for your NVIDIA GPU on the base system. · 2. Install docker-ce 19.03 or newer. · 3. launch your...
Read more >Enabling GPU access with Compose - Docker Documentation
Use of service runtime property from Compose v2.3 format (legacy) . Docker Compose v1.27.0+ switched to using the Compose Specification schema which...
Read more >Installing NVIDIA Docker component and Python packages - IBM
Procedure · Install the container runtime and runtime hook: · Set up the container runtime and tell Docker to use it as the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks for the working example! I’m not sure what a PR would include, though. From the looks of what you have there, it seems like
extra_host_config
is already enough:which seems to work when I try it, so we already have this feature satisfied by passing through arguments to docker-py.
Following up on that, the
extra_create_kwargs
is unnecessary. Only theextra_host_config
is required. The main source of confusion was that the docker Python docs suggest that you can specifyruntime
viacreate
, but this is only true if there is not a host_config also specified. Since DockerSpawner always specifies a host config, runtime can only be specified there.