It is one of the most exciting things to use CUDA and GPUs directly within Windows recently. Big thanks to all teams from both Nvidia and Microsoft. Now I can use all my previous CUDA docker containers inside Windows.
I have a question regarding to camera utilization within WSL 2 (Ubuntu 18.04). Is it possible to use connected cameras within the nvidia-docker containers in WSL 2? If not directly, is there any possible workaround for it?
And also I am getting an error when I try to run one of my containers (a custom Detectron2 container). The error is:
$ sudo docker run -ti --gpus all -p 8888:8888 <private-registry>/repository:detectron2 docker: Error response from daemon: OCI runtime create failed: container_linux.go:349: starting container process caused "process_linux.go:449: container init caused \"process_linux.go:432: running prestart hook 0 caused \\\"error running hook: exit status 1, stdout: , stderr: nvidia-container-cli: mount error: file creation failed: /var/lib/docker/overlay2/2451df56e9063f9b8c07f0234f9f2ce58961b4da61fa33130d5fefaf7c0521f1/merged/usr/lib/x86_64-linux-gnu/libcuda.so.1: file exists\\\\n\\\"\"": unknown. ERRO error waiting for container: context canceled
I don’t have any problems with running this container with the exact same command withing native Ubuntu 18.04 by the way. So why WSL side can’t mount and overwrite an existing file which is already in place inside the container?