如何在docker中运行blackmagic?

我尝试在Docker中使用blackmagic,但不成功。 这里是“bmagic”的一些输出。 为什么说“找不到卡”? 以及如何解决?

$ bmagic LOG (2015-02-04 20:37:19) List of devices with IRQ 48: LOG (2015-02-04 20:37:19) 0000:27:00.0 Vendor=bdbd Device=a11b Class=0400 IRQ=48 (pin 1) Base0=df700000 (Vendor bdbd: Device a11b) LOG (2015-02-04 20:37:19) List of devices with IRQ 58: LOG (2015-02-04 20:37:19) 0000:24:00.0 Vendor=bdbd Device=a11b Class=0400 IRQ=58 (pin 1) Base0=dfd00000 (Vendor bdbd: Device a11b) LOG (2015-02-04 20:37:19) List of devices with IRQ 59: LOG (2015-02-04 20:37:19) 0000:25:00.0 Vendor=bdbd Device=a11b Class=0400 IRQ=59 (pin 1) Base0=dfb00000 (Vendor bdbd: Device a11b) LOG (2015-02-04 20:37:19) List of devices with IRQ 60: LOG (2015-02-04 20:37:19) 0000:26:00.0 Vendor=bdbd Device=a11b Class=0400 IRQ=60 (pin 1) Base0=df900000 (Vendor bdbd: Device a11b) Warning: No cards found. Is the [blackmagic] driver loaded? 

我猜@ user180574正在谈论使用特定硬件卡的软件。 因此,需要将主机的/ dev文件节点传递给docker容器,以启用容器来检测硬件。

与这个问题有关 ,我认为解决scheme是像这样运行docker:

 docker run --privileged --device=/dev/path/to/dev/file:/dev/path/to/dev/file 

搞清楚哪一个/ dev节点你必须转发到docker集装箱是由你自己决定的,因为你的问题在这方面相当贫乏。