Closed k7 closed 3 years ago
I have found the solution.
Use --runtime=nvidia -e NVIDIA_VISIBLE_DEVICES=4
instead of --gpus 4
.
docker run --runtime=nvidia -e NVIDIA_VISIBLE_DEVICES=4 --device=/dev/dri:rw -it -e SHARED=TRUE -e VNCPASS=vncpasswd -p 5901:5901 ehfd/nvidia-glx-desktop:18.04
--gpus 4
means to provision 4 GPUs, not provision the GPU with the ID of 4.
In addition to the solution you wrote, --gpus '"device=4"'
is also the same thing.
For 18.04, check README.md.
Added to Troubleshooting docs.
Thanks for your great job!
I have success run docker-nvidia-egl-desktop:latest.
However, I happened to this problem and failed.
I want to run Calar simulator which need to run in ubuntu 18.04.
It would be great to provide 18.04 version too.
Here is some information run in docker.