Merge pull request #242 from vyorkin/patch-1

Update docker cheat
This commit is contained in:
Chris Lane 2015-11-22 11:23:59 -05:00
commit 8e7ce511bd
1 changed files with 4 additions and 1 deletions

View File

@ -19,6 +19,9 @@ docker inspect --format {{.State.Pid}} <container_name_or_ID>
# http://nathanleclaire.com/blog/2014/07/12/10-docker-tips-and-tricks-that-will-make-you-sing-a-whale-song-of-joy/
docker inspect --format='{{json .Volumes}}' <container_id> | python -mjson.tool
# Copy files/folders between a container and your host
docker cp foo.txt mycontainer:/foo.txt
# list currently running containers
docker ps