From all the researches online and some experimentation with using ‘–device’, I’ve found that ephemeral (hot pluggable) devices are not supported by this option. It’s a incomplete info Docker documentation did not state this clearly, if at all. I only read one comment online from a user which mentioned it in passing. For those who want to use ‘–device’ for these devices, don’t; use the ‘–privileged’ & '-v ’ options instead. This will avoid you having to specify the exact device file name, e.g. /dev/bus/usb/002/088, instead you can specify just /dev/bus/usb
If we run in privileged mode, all USB busses are available to the container.
We just need to delete the unwanted bus from the container. Though the volume is in sync, this deletion will not effect the USB bus in Docker host.
Yes it will affect, In my cases
I’m able to launch two containers by allocating two different devices to it with --privilege mode. But problem is
when i list devices it is listing same devices in both container even Devpath is different .