Are there any multi-host container orchestration tools which allow USB device mapping? Or any production grade solutions/hacks?

10/8/2019

Docker provides a --device flag for individual containers to map device ports (USB devices for example; ttyUSB0, ttyACM0) at run-time.

This feature is great but seems to disappear when we abstract away from the host machine if using Docker swarm or Kubernetes however, I have not been able to confirm if this feature doesn't exist (I would be surprised if such a feature did exist since these orchestration tools implement a high degree of abstraction). Being said, I absolutely need to utilize the power of an orchestration tool but at the same time in spite of abstraction, I also require the ability to map device ports because I intend to retrieve data from sensors.

Are there any production grade solutions to this problem? or does the feature exist in some manner?

-Thankyou

-- spacetimeengineer
docker
docker-swarm
kubernetes
usb

1 Answer

10/9/2019

Here is the one community proposal for this topic (in multi-node env you can consider using NFS server)

Hi I am not expert in this matter but it seems like it's the task for IOT. You should consider using IOT like more general solution while working with sensors:

Hope this help

-- Hanx
Source: StackOverflow