Skip to content

Instantly share code, notes, and snippets.

@solidnerd
Forked from gesellix/screen-stuff.md
Created November 22, 2016 08:07
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 solidnerd/384eb66622f33e3810ef14b085ad934f to your computer and use it in GitHub Desktop.
Save solidnerd/384eb66622f33e3810ef14b085ad934f 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