-
-
Save RamsesMartinez/c39cd7ad93c09a86089f11e50e74ae54 to your computer and use it in GitHub Desktop.
Revisions
-
RamsesMartinez revised this gist
Jun 15, 2020 . 1 changed file with 4 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 @@ -4,12 +4,14 @@ stop all containers: docker kill $(docker ps -q) ``` remove all containers ```bash docker rm $(docker ps -a -q) ``` remove all docker images ```bash docker rmi $(docker images -q) ``` -
RamsesMartinez revised this gist
Jun 15, 2020 . 1 changed file with 1 addition 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,7 +1,7 @@ stop all containers: ```bash docker kill $(docker ps -q) ``` ```bash -
RamsesMartinez renamed this gist
Jun 15, 2020 . 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 @@ -1,5 +1,6 @@ stop all containers: ```bash docker kill $(docker ps -q) ``` -
RamsesMartinez revised this gist
Jun 15, 2020 . 1 changed file with 14 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 +1,14 @@ stop all containers: ``bash docker kill $(docker ps -q) ``` ```bash remove all containers docker rm $(docker ps -a -q) ``` ```bash remove all docker images docker rmi $(docker images -q) ``` -
evanscottgray revised this gist
Jan 23, 2014 . 1 changed file with 1 addition 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 +1 @@ docker ps | awk {' print $1 '} | tail -n+2 > tmp.txt; for line in $(cat tmp.txt); do docker kill $line; done; rm tmp.txt -
evanscottgray created this gist
Jan 23, 2014 .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 @@ for line in $(docker ps | awk {' print $1 '} | tail -n+2); do docker kill $line; done