-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot access mounted pts device inside container #77
Comments
I've also tried with
|
Sounds related to moby/moby#11462 (which explains a bit what happens when you start a container) |
I can still reproduce this in Docker version
|
@codeaholics I am trying to do the exact same thing, did you ever get it to work? If not this way, what was your workaround? |
No, I didn’t. The software inside the container is open source, so I patched it to work with either serial or TCP and had it reach out directly to the `socat` on the far end without needing one on the local end.
… On 28 May 2018, at 14:57, kungfoolfighting ***@***.***> wrote:
@codeaholics I am trying to do the exact same thing, did you ever get it to work? If not this way, what was your workaround?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
For those that come across this I may have found a work around, one can simply use a volume mount to bindmount the FD into the container.
Keep in mind, if the pty goes away and is re-created, the container will not know any better and EIO any access to it |
Still not working in 19.03.8-ce build afacb8b7f0...however the workaround to use the pts device via the volume flag as mentioned by coolacid seems to work for now. |
Still an issue as of Even explicitly adding to the
|
Expected behavior
Mounting a pts device with
--device
should make it accessible within the container.Actual behavior
The device appears, but I get
EIO
when trying to access it.Steps to reproduce the behavior
I am using
socat
to bring a remote serial port to my server over the LAN.socat
creates pts devices.On the physical machine:
Start a container:
Now, inside the container:
Trying with
/dev/null
instead of a pts appears to work fine:Output of
docker version
:Output of
docker info
:Additional environment details (AWS, VirtualBox, physical, etc.)
The text was updated successfully, but these errors were encountered: