Mount-bind the PTY as container console - allow for tmux/screen to run

Docker-DCO-1.1-Signed-off-by: Guillaume J. Charmes <guillaume.charmes@docker.com> (github: creack)
This commit is contained in:
Guillaume J. Charmes
2014-02-13 17:23:09 -08:00
parent a4d1da709e
commit 408ea0771a
3 changed files with 7 additions and 0 deletions
+1
View File
@@ -231,6 +231,7 @@ func (container *Container) setupPty() error {
container.ptyMaster = ptyMaster
container.command.Stdout = ptySlave
container.command.Stderr = ptySlave
container.command.Console = ptySlave.Name()
// Copy the PTYs to our broadcasters
go func() {