Skip to content
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

dockerpty.start doesn't return after detaching container #63

Open
plehong opened this issue Feb 24, 2016 · 1 comment
Open

dockerpty.start doesn't return after detaching container #63

plehong opened this issue Feb 24, 2016 · 1 comment

Comments

@plehong
Copy link

plehong commented Feb 24, 2016

I'm trying to run an interactive shell in a docker container, but dockerpty.start doesn't return when I detach the container using C-p C-q.

On RedHat 7.2, it remains stuck in the _hijack_tty method.
On Ubuntu 14.4, I get an exception if I continue to enter some keystrokes.

Attached file contains the test program and the traceback on Ubuntu, Docker version 1.10.1.

Test.zip

@plehong
Copy link
Author

plehong commented Mar 2, 2016

As stated in the README.md: "If you press C-p C-q, the container's PTY will be closed, but the container will keep running. In other words, you will have detached from the container and can re-attach with another dockerpty.start() call."
So i consider this issue as a BUG and not an ENHANCEMENT, since the PTY isn't properly closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants