Skip to content

Instantly share code, notes, and snippets.

@tuksik
Last active August 29, 2015 14:11
Show Gist options
  • Save tuksik/cf6aa87733e21e8b8184 to your computer and use it in GitHub Desktop.
Save tuksik/cf6aa87733e21e8b8184 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