Created
February 25, 2014 01:33
-
-
Save joaodubas/9200860 to your computer and use it in GitHub Desktop.
docker example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ # 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