Sharing a USB camera with usbipd in a docker container #11230
Unanswered
guillaumenibert
asked this question in
Q&A
Replies: 1 comment 1 reply
-
did you figure it out? im triying to do the same with wsl2. probably just better to not use docker ? idk. looking for answers. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello everyone, thank you for your work, I am looking to share my USB camera to a docker container.
I am not sure this is a WSL issue, so I am posting my problem here.
Windows version
Microsoft Windows [version
10.0.22631.3155
]WSL Version
2.0.14
Are you using WSL 1 or WSL 2?
Kernel Version
WSL kernel compiled with USB Camera drivers based on version
5.15.133.1
; Tutorial provided by @AgileDevArt available here: https://youtu.be/t_YnACEPmrM?feature=shared&t=183.Distro Version
Docker Desktop for Windows
v4.28.0
;docker-desktop
distro.Other Software
usbipd-win
v4.1.1-dev
from dorssel/usbipd-win#856 (comment).Repro Steps
Based on discussion dorssel/usbipd-win#315, I performed these steps:
cheese
: it works./dev/video0
is visible in thedocker-desktop
distro.Adapting it, I tried these configurations (docker compose file), with or without privileges, with or without the devices part,
Expected behaviour
I should see
/dev/video0
in my container.Actual behaviour
/dev/video0
is visible in thedocker-desktop
distro, but not in the container: when I dolsusb
in my container, the camera is visible, but the output ofls /dev
does not listvideo0
.Diagnostic logs
No response
Additional information
Copy of this post in the Docker for Windows GitHub repository: docker/for-win#13940 and in the usbipd project discussions: dorssel/usbipd-win#879; @dorssel advised me to also post my problem to WSL's GitHub repository.
I am interested in any advice, whether or not it concerns WSL or rather Docker Desktop for Windows.
Best regards,
Guillaume Nibert
Beta Was this translation helpful? Give feedback.
All reactions