Skip to content

Instantly share code, notes, and snippets.

@kaosf
Last active August 8, 2017 13:22
Show Gist options
  • Save kaosf/b295ad2c37723e9c1627038c6428782f to your computer and use it in GitHub Desktop.
Save kaosf/b295ad2c37723e9c1627038c6428782f to your computer and use it in GitHub Desktop.
set -x
# # Preparation
# sudo docker run -it quay.io/tatsuya6502/rusti
# cd ~/rusti
# cargo run
# # Ctrl+D to exit
# # Ctrl+P, Ctrl+Q to detach
CONTAINER_ID=$(sudo docker ps | grep 'quay.io/tatsuya6502/rusti' | head -1 | awk '{print $1}')
sudo docker attach $CONTAINER_ID
# cargo run
# ref. https://github.com/murarth/rusti
# ref. http://qiita.com/tatsuya6502/items/61af3f4d6c52e472f899
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment