Skip to content

Instantly share code, notes, and snippets.

@yiwang
Last active August 29, 2015 14:12
Show Gist options
  • Select an option

  • Save yiwang/6c747dbd86403fb7e962 to your computer and use it in GitHub Desktop.

Select an option

Save yiwang/6c747dbd86403fb7e962 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