-
-
Save dcchambers/0b3d0f927f27bf8339e3367b8b734dae to your computer and use it in GitHub Desktop.
Revisions
-
dcchambers revised this gist
Dec 6, 2019 . 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 @@ -6,7 +6,7 @@ if [ $UID != 0 ]; then exit 1 fi echo "docker-nuke-safely exists to do one thing; clean up your Docker environment. It's not called docker-carefully-and-nicely-spritz-up. Be careful!" echo read -p "Nuke now? [y/N] " -n 1 -r if [[ $REPLY =~ ^[Yy]$ ]] -
dcchambers revised this gist
Nov 26, 2019 . No changes.There are no files selected for viewing
-
dcchambers revised this gist
Jul 15, 2019 . No changes.There are no files selected for viewing
-
dcchambers revised this gist
Jun 26, 2019 . No changes.There are no files selected for viewing
-
dcchambers revised this gist
Apr 3, 2019 . 1 changed file with 4 additions and 0 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 @@ -18,20 +18,23 @@ then then echo "Stoping all containers" docker stop $(docker ps -a -q) fi echo read -p "Would you like to delete all containers? [y/N] " -n 1 -r if [[ $REPLY =~ ^[Yy]$ ]] then echo "Deleting all containers" docker rm $(docker ps -a -q) fi echo read -p "Would you like to delete all images? [y/N] " -n 1 -r if [[ $REPLY =~ ^[Yy]$ ]] then echo "Deleting all images" docker rmi $(docker images -q) fi echo read -p "Would you like to delete all volumes? [y/N] " -n 1 -r @@ -40,6 +43,7 @@ then echo "Deleting all volumes" rm -rf /var/lib/docker/volumes/* rm -rf /var/lib/docker/vfs/dir/* fi echo echo -
dcchambers revised this gist
Apr 3, 2019 . 2 changed files with 50 additions and 38 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 @@ -1,38 +0,0 @@ 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,50 @@ #!/bin/bash #Check if user is root if [ $UID != 0 ]; then echo "You need to be root to use this script." exit 1 fi echo "docker-nuke exists to do one thing; clean up your Docker environment. It's not called docker-carefully-and-nicely-spritz-up. Be carefully!" echo read -p "Nuke now? [y/N] " -n 1 -r if [[ $REPLY =~ ^[Yy]$ ]] then echo read -p "Would you like to stop all containers? [y/N] " -n 1 -r if [[ $REPLY =~ ^[Yy]$ ]] then echo "Stoping all containers" docker stop $(docker ps -a -q) echo read -p "Would you like to delete all containers? [y/N] " -n 1 -r if [[ $REPLY =~ ^[Yy]$ ]] then echo "Deleting all containers" docker rm $(docker ps -a -q) echo read -p "Would you like to delete all images? [y/N] " -n 1 -r if [[ $REPLY =~ ^[Yy]$ ]] then echo "Deleting all images" docker rmi $(docker images -q) echo read -p "Would you like to delete all volumes? [y/N] " -n 1 -r if [[ $REPLY =~ ^[Yy]$ ]] then echo "Deleting all volumes" rm -rf /var/lib/docker/volumes/* rm -rf /var/lib/docker/vfs/dir/* echo echo echo "Finished nuking" else echo "Cancelled" fi -
Felix Imobersteg revised this gist
Jul 31, 2015 . 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 @@ -6,7 +6,7 @@ if [ $UID != 0 ]; then exit 1 fi echo "docker-nuke exists to do one thing; clean up your Docker environment. It's not called docker-carefully-and-nicely-spritz-up. Be carefully!" echo read -p "Nuke now? [y/N] " -n 1 -r if [[ $REPLY =~ ^[Yy]$ ]] -
Felix Imobersteg revised this gist
Jul 31, 2015 . 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 @@ -13,7 +13,7 @@ if [[ $REPLY =~ ^[Yy]$ ]] then echo echo "Stop all containers" docker stop $(docker ps -a -q) echo -
Felix Imobersteg revised this gist
Jul 31, 2015 . No changes.There are no files selected for viewing
-
Felix Imobersteg revised this gist
Jul 31, 2015 . No changes.There are no files selected for viewing
-
Felix Imobersteg revised this gist
Jul 31, 2015 . No changes.There are no files selected for viewing
-
Felix Imobersteg created this gist
Jul 31, 2015 .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,38 @@ #!/bin/bash #Check if user is root if [ $UID != 0 ]; then echo "You need to be root to use this script." exit 1 fi echo "docker-nuke exists to do one thing; clean up your Docker environment. It's not called docker-carefully-and_nicely-spritz-up. Be carefully!" echo read -p "Nuke now? [y/N] " -n 1 -r if [[ $REPLY =~ ^[Yy]$ ]] then echo echo "Stop all containers" docker stop $(docker ps -a -q) echo echo "Delete all containers" docker rm $(docker ps -a -q) echo echo "Delete all images" docker rmi $(docker images -q) echo echo "Delete all volumes" rm -rf /var/lib/docker/volumes/* rm -rf /var/lib/docker/vfs/dir/* echo echo echo "Finished nuking" else echo "Cancelled" fi