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