Closed alexonpeace closed 2 months ago
I'm trying to run this on docker desktop
It works without the
runtime: nvidia
deploy:
resources:
reservations:
devices:
- driver: nvidia
#device_ids: ['0', '1'] # Select a gpu, or
count: all
capabilities: [gpu]
but how do I make it run with GPU
I think all you need to do is setup wsl2 and enable wsl2 in docker desktop and run it from there. As I understand it, in windows the 'runtime' and 'deploy' sections are not required after you do this. Here is a video that should detail the steps: https://www.youtube.com/watch?v=PB7zM3JrgkI
the runtime: nvidia
throws the same error for me as well and I have a bunch of nvidia accelerated containers running just fine.
as per https://stackoverflow.com/questions/52865988/nvidia-docker-unknown-runtime-specified-nvidia
runtime: nvidia is just for nvidia-docker2 which is outdated.
@alexonpeace - can you confirm this? Looks like the deploy section is still required to enable gpus even with an nvidia compatible runtime
it works 👍