Skip to content

Instantly share code, notes, and snippets.

@crazygit
Forked from gesellix/screen-stuff.md
Created August 12, 2017 06:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save crazygit/f2a18f845d0b37400ec168a913221d5e to your computer and use it in GitHub Desktop.
Save crazygit/f2a18f845d0b37400ec168a913221d5e 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