Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
lxc-attach not a tty, so tmux/byobu is broken #554
Comments
linas
commented
Jun 8, 2015
|
Sorry: I should add: this is for the apt-get lxc on ubuntu 14.04 runing ubunutu 14.04 amd64 so it is the completely stock LTS version, and NOT the current github version, which maybe is fixed. Also: FYI: the docker folks have more or less exactly this same bug; they have a bug open in their github to cover this. They seem to be unable to wrap their minds around why anyone would want to do this, despite maybe a dozen "me too" posts. |
ericsnowcurrently
commented
Aug 9, 2016
|
FTR: docker/docker#8755 |
|
This is a known bug in glibc and @hallyn has send a fix to glibc (https://sourceware.org/ml/libc-alpha/2016-08/msg00307.html). It just needs to be applied. |
linas
commented
Aug 10, 2016
|
Wow! Awesome! Thank you @hallyn ! (I'm saying "awesome" because this is an interesting patch, not what I might have guessed.) |
linas
referenced this issue
in moby/moby
Aug 10, 2016
Closed
Docker tty is not a tty with docker exec #8755
linas
commented
Aug 10, 2016
•
|
I guess the normal protocol is to leave this open until glibc applies the patch, and then wait till it rolls out, test it, and then close this bug, which could take many months (!?). Unfortunately, the patch just missed the glibc 2.24 release by a week. I wonder what the chances are that debian/ubuntu might pick up the patch in their stable branches; I have no clue how that decision would get made. |
kfix
commented
Mar 30, 2017
|
the glibc fix seems to have been upstreamed recently: http://patchwork.ozlabs.org/patch/720749/ |
|
This is the same issue that we've tracked in lxc/lxd#936 .
Once the distros pick-up on those you're good to go. |
linas commentedJun 8, 2015
If you
lxc-attach -n some-container, then tmux and byobu don't work. The reason for this becomes clear:tmux -vreports:This can be confirmed with the
ttycommand which reports:not a ttyThere is a simple work-around: say
script /dev/nulland thenttyreports/dev/pts/1and tmux works.