Docker Community Forums

Share and learn in the Docker community.

Garbled terminal after reattaching to detached moby 'screen'


(Gary Bartlett) #1

After attaching and detaching (^A ^D) from the screen session (screen ~/Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux/tty) to the moby Docker host, when I try to reattach to it, my terminal is messed up (input seems to be accepted, but output/echo is garbled - missing characters).

Is there a way to reset the terminal at this point (beside restarting Docker-for-Mac)? I tried stty sane and tset but these didn’t help. It also appears that the output of stty is the same before and after the reattachment, so not sure if it’s actually a terminal problem.

Version 1.12.3-rc1-beta29 (13397)
Channel: Beta


(David Sheets) #2

You’ve only detached the screen session so your garbled output is the result of two screen sessions reading from the same tty. I recommend either using screen -r to reattach or killall SCREEN before starting a new session.


(Gary Bartlett) #3

Thank you @dsheets! (That was simple).