Hilscher Community Forum
Are USB interfaces exposed by docker to the containers? - Printable Version

+- Hilscher Community Forum (https://forum.hilscher.com)
+-- Forum: netPI 3 - Docker featuring Industrial Raspberry Pi 3 platform (https://forum.hilscher.com/forum-1.html)
+--- Forum: Software (https://forum.hilscher.com/forum-5.html)
+--- Thread: Are USB interfaces exposed by docker to the containers? (/thread-227.html)



Answer - vdupont - February-16th-2018

Is it possible to expose / share an USB device through the "Runtime" -> Add Device configuration of a container?

If yes, how do I know what is the device host path?

I would like to add a serial interface (RS232) and perhaps a z-ware usb stick, which must be exposed.


Answer - Armin@netPI - February-17th-2018

We made netPI's ecosystem secure. To fulfil this demand not every function a standard Docker provides is implemented in netPI's system software. For example if you switch ond privileged mode on netPI, then not all /dev/ are automatically mapped into a container, which standard Docker does. And also in the current system software we do not allow to volume bind any folder or volumes from the host.

Back to the question which path. The same path as on your Raspberry. Since netPI is just a Docker Host and not a development platform for containers, you have to anyway develop on a Raspberry.