Skip to content

Instantly share code, notes, and snippets.

@EmmanuelTsouris
Forked from gesellix/screen-stuff.md
Created June 7, 2016 22:37
Show Gist options
  • Save EmmanuelTsouris/1fc9b8bb31c9ba9fb81aeeecaf9d5a19 to your computer and use it in GitHub Desktop.
Save EmmanuelTsouris/1fc9b8bb31c9ba9fb81aeeecaf9d5a19 to your computer and use it in GitHub Desktop.
screen and Docker for Mac
screen ~/Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux/tty



screen -AmdS docker ~/Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux/tty
screen -r docker
# enter, then disconnect with Ctrl-a d
screen -S docker -p 0 -X stuff $(printf root\\r\\n)
screen -r docker

screen -S docker -X quit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment