You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello everyone, thank your for your work, I am looking to share my USB camera to a docker container.
Based on discussion #315, I performed these steps:
I recompiled the Linux kernel for WSL with camera driver support,
then attached my camera to WSL using usbipd,
tested the camera on the Ubuntu default WSL distribution with cheese: it works.
/dev/video0 is visible in the docker-desktop distro, but not in the container:
Hi @salvatoreTorsello I use usbipd successfully to forward a USB device to a docker container. For that I had to map -v /dev:/dev and add --privileged so the container can access the devices. Depending on you device you have to install drivers for it in WSL2 thought.
Adapting it, I tried these configurations (docker compose file), with or without privileges, with or without the devices part,
Hello everyone, thank your for your work, I am looking to share my USB camera to a docker container.
Based on discussion #315, I performed these steps:
/dev/video0
is visible in thedocker-desktop
distro, but not in the container:I tried this tip (#315) from @NikLeberg:
Adapting it, I tried these configurations (docker compose file), with or without privileges, with or without the devices part,
When I do
lsudb
in my container, the camera is visible, but the output ofls /dev
does not listvideo0
.I am interested in any advice, whether or not it concerns usbipd or rather WSL/Docker.
Best regards,
Guillaume
--
Docker Desktop for Windows 4.28.0
Usbipd: 4.1.1-dev (from #856)
Host: Windows 11 23H2
Container: Ubuntu 22.04
The text was updated successfully, but these errors were encountered: