Last active
May 27, 2019 17:04
-
-
Save verticalgrain/31e91c709c57f65c3797e95af17764d4 to your computer and use it in GitHub Desktop.
Revisions
-
verticalgrain revised this gist
May 27, 2019 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -6,10 +6,10 @@ docker system prune -a docker ps -aq. // Stop all running containers. docker stop $(docker ps -a -q) // Remove all containers. docker rm $(docker ps -a -q) // Remove all images. docker rmi $(docker images -q) -
verticalgrain revised this gist
May 1, 2019 . 1 changed file with 7 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -31,4 +31,10 @@ docker cp foo.txt mycontainer:/foo.txt docker cp mycontainer:/foo.txt foo.txt docker cp src/. mycontainer:/target docker cp mycontainer:/src/. target // List running containers docker container ls // Check container status docker-compose ps -
verticalgrain revised this gist
Oct 25, 2018 . 1 changed file with 2 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -18,13 +18,14 @@ docker rmi $(docker images -q) docker container start containername // SSH Into container docker exec -it containername /bin/bash // Start docker machine eval $(docker-machine env default) docker-machine ls // // Copy to and from docker machine docker cp foo.txt mycontainer:/foo.txt docker cp mycontainer:/foo.txt foo.txt -
verticalgrain revised this gist
Oct 25, 2018 . 1 changed file with 8 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -23,4 +23,11 @@ docker container start containername // Start docker machine eval $(docker-machine env default) docker-machine ls // Copy to and from docker machine docker cp foo.txt mycontainer:/foo.txt docker cp mycontainer:/foo.txt foo.txt docker cp src/. mycontainer:/target docker cp mycontainer:/src/. target -
verticalgrain revised this gist
Oct 25, 2018 . 1 changed file with 6 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -18,4 +18,9 @@ docker rmi $(docker images -q) docker container start containername // SSH Into container docker exec -it containername /bin/bash // Start docker machine eval $(docker-machine env default) docker-machine ls -
verticalgrain revised this gist
Oct 25, 2018 . 1 changed file with 7 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -12,4 +12,10 @@ docker stop $(docker ps -aq) docker rm $(docker ps -aq) // Remove all images. docker rmi $(docker images -q) // Start container docker container start containername // SSH Into container docker exec -it containername /bin/bash -
verticalgrain revised this gist
Oct 18, 2018 . 1 changed file with 13 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,15 @@ // clean cache and do some ot her scary stuff docker system prune -a // List all containers (only IDs) docker ps -aq. // Stop all running containers. docker stop $(docker ps -aq) // Remove all containers. docker rm $(docker ps -aq) // Remove all images. docker rmi $(docker images -q) -
verticalgrain created this gist
Oct 17, 2018 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,3 @@ // clean cache and do some ot her scary stuff docker system prune -a