I am trying to start a docker container with serial port access on the host.
Here is what I did:
- I used a mac
- Drivers installed on the host ( http://www.prolific.com.tw/US/ShowProduct.aspx?p_id=229&pcid=41 )
- Connected device
- Launched
ls/dev/t* which returned /dev/tty.usbserial - this worked docker run -it --privileged -v/dev: /dev node:4.4.0/bin/bash container, docker run -it --privileged -v/dev: /dev node:4.4.0/bin/bash , and then ls/dev/t* inside the container that didn't return the /dev/tty.usbserial device ...
I played a lot with different variations of the parameters, but did not find a working one :)
Also, the --device flag --device not suit me, since the device may be reconnected, and the name may differ from /dev/tty.usbserial .
bash docker device serial-port usb
kashesandr May 13, '16 at 15:24 2016-05-13 15:24
source share