-
Notifications
You must be signed in to change notification settings - Fork 127
Open
Description
Expected behavior
That I can expose a tty dev device from my mac to a linux container by running.
$ docker run --rm -it -v `pwd`:/app --device /dev/tty.usbmodem1421 node bash
Actual behavior
$ docker run --rm -it -v `pwd`:/app --device /dev/tty.usbmodem1421 node bash
docker: Error response from daemon: linux runtime spec devices: error gathering device information while adding custom device "/dev/tty.usbmodem1421": lstat /dev/tty.usbmodem1421: no such file or directory.
I can work past this with --privileged
but I don't see it in /dev/
$ docker run --rm -it -v `pwd`:/app --device /dev/tty.usbmodem1421 --privileged node bash
root@5a6a7f6b8e58:/# ls /dev/tty.*
ls: cannot access /dev/tty.*: No such file or directory
According to the docs on docker run I shouldn't need --privileged
.
Information
- Full output of the diagnostics from "Diagnose & Feedback" in the menu
Docker for Mac: version: 1.12.3-beta29.3 (619507e)
OS X: version 10.12.1 (build: 16B2555)
logs: /tmp/E9C6B44E-7492-484A-A6EF-EE5BE163959F/20161105-153323.tar.gz
[OK] vmnetd
[OK] dns
[OK] driver.amd64-linux
[OK] virtualization VT-X
[OK] app
[OK] moby
[OK] system
[OK] moby-syslog
[OK] db
[OK] env
[OK] virtualization kern.hv_support
[OK] slirp
[OK] osxfs
[OK] moby-console
[OK] logs
[OK] docker-cli
[OK] menubar
[OK] disk
- Page URL if this is a docs issue or the name of a man page
https://docs.docker.com/engine/reference/run/#/runtime-privilege-and-linux-capabilities
Steps to reproduce the behavior
- hook up a tty serial device such as an Arduino, usb serial dongle, modem, cash drawer, etc to your mac
- Run the commands above to expose it's
/dev/tty.usbXXXX
device to the docker image - Look for the device
danhamilt1, sheinz, BJam, SrinivasanTarget, chingchichuang and 232 moremirek-burkon, quincarter, JulianPinzaru and keegandent