-
Notifications
You must be signed in to change notification settings - Fork 18.8k
docker attach
hangs on exit when container is run with -i -d
#1869
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
Comments
Could this be related to #1300? What operating system is the host? Can you show the output of running the docker daemon with debug output turned on? |
I think this is fixed on master, can you confirm ? On Sat, Sep 21, 2013 at 10:28 AM, Peter Waller notifications@github.comwrote:
Victor VIEUX |
No, it is not fixed. It is a different issue than hang after escape sequence. |
moby/moby#1869 is closed and released
moby/moby#1869 is closed and released
This is occurring for me still/again with 0.8.x (symptom exactly as per OP above) I'm on OSX with latest boot2docker |
I think I may be experiencing this issue with docker version 1.2 when trying to do: sudo docker attach e728d7b26857 uname -a for host: Linux android-host-2 3.13.0-35-generic #62-Ubuntu SMP Fri Aug 15 01:58:42 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux Container based on official Ubuntu 12.04. Command used to run container: sudo docker run -u=root -v /home/full_tests:/home/full_tests -e PATH=$PATH:/android-sdk-linux/platform-tools -i -d --privileged --device /dev/bus/usb/001/001 10d7ec2cfa4d /home/myuser/myscript.sh Ctrl+C doesn't do anything, and attach command just sits there: myuser@android-host-2:~$ sudo docker attach e728d7b26857
^C I am happy to be told that I am doing something wrong. The documents for attach don't mention anything about which kind of startup processes you can/cannot attach to. However in the examples I have seen it's http://docs.docker.com/reference/commandline/cli/#attach (I realise this is issue is closed, does that mean nobody will look at it?) |
This prints
Hello
andWorld
to the console:This hangs after the container exits, only printing
Hello
:Any additional key presses cause it to exit and print
World
, but this is troublesome for scripts.The text was updated successfully, but these errors were encountered: