Skip to content

Instantly share code, notes, and snippets.

@joaodubas
Created February 25, 2014 01:33
Show Gist options
  • Save joaodubas/9200860 to your computer and use it in GitHub Desktop.
Save joaodubas/9200860 to your computer and use it in GitHub Desktop.
docker example
$ # no host
$ docker run -i -t stackbrew/ubuntu:quantal bash
# # no container
# touch test_file.txt
# exit
$ # no host
$ docker ps -a # vamos pegar o id do container (ex: 0bf41761ce3b)
$ docker start -i 0bf41761ce3b
# # no container
# echo "ola mundo" > test_file.txt
# exit
$ # no host
$ docker start 0bf41761ce3b
$ docker attach 0bf41761ce3b
# # no container
# cat test_file.txt
# exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment