RedditPP Mascot

RedditPP

r/unRAID • … • u/thebluehotel

Noob question for passing a USB HDMI capture card into a docker container

Preface: I'm not a programmer

I started using UnRAID as a NAS, and it's working great for that, but I'd like for it to do double duty as an OBS streaming machine. I've gotten OBS-NDI to work, but I want to see if I can do it a little differently. I have a j5create dual HDMI capture card that should be plug and play inside Linux (it's a UVC device). I'd like to use it inside my OBS-NDI docker container.

Here's the issue: I have no idea to how to allow my capture card to pass through to OBS-NDI. I know that the computer is recognizing it (using `lsusb` inside terminal but it's also under system devices/settings in UnRAID).

I tried using [this link on stack overflow](https://stackoverflow.com/questions/24225647/docker-a-way-to-give-access-to-a-host-usb-or-serial-device) by running the following inside the terminal:

`docker run -t -i --device=/dev/bus/usb/001/009 repo/filename:latest`

but I get some error

`/usr/bin/xauth: file /root/.Xauthority does not exist`

and then a diatribe about a VNC environment starting. Most threads on UnRAID forums, SO, superuser, and [docker.com](https://docker.com) have mentioned ttyUSB or ACM, and I've been around the block with this thing for a few hours, but I'm also 90% sure I'm just not passing through the correct arguments into `docker run`. Anyone have any suggestions?

TL;DR: total noob (my command line experience is mostly running ipconfig to figure out my IP address), need to pass a (probably?) class compliant, plug-and-play USB device through to my docker container.

— 0