diff --git a/cheat/cheatsheets/docker b/cheat/cheatsheets/docker index d803ccc..6224d7b 100644 --- a/cheat/cheatsheets/docker +++ b/cheat/cheatsheets/docker @@ -19,6 +19,9 @@ docker inspect --format {{.State.Pid}} # 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}}' | 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 @@ -26,4 +29,4 @@ docker ps docker ps -a # list all images -docker images \ No newline at end of file +docker images