Skip to content

Instantly share code, notes, and snippets.

@abdul
Last active August 29, 2015 14:13
Show Gist options
  • Save abdul/57152941f660aeb8776b to your computer and use it in GitHub Desktop.
Save abdul/57152941f660aeb8776b to your computer and use it in GitHub Desktop.

Set up screen

  1. docker run --detach --interactive --tty --privileged --net=host fedora /bin/bash
  2. docker attach $CONTAINER_ID
  3. yum install screen

Create screen session

  1. docker attach $CONTAINER_ID
  2. screen -S test
  3. Detach from screen

Reattach to screen session

  1. docker attach $CONTAINER_ID
  2. screen -r test
  3. Detach from screen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment