Created
September 28, 2020 07:20
-
-
Save AlexanderC/03541f4cf68d316ca4b4f603dc55f36b to your computer and use it in GitHub Desktop.
Docker: stop container and purge data and images.
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 characters
alias docker-purge='(docker stop $(docker ps -aq) || echo "Skipping...") && (docker rm $(docker ps -aq) || echo "Skipping...") && (docker rmi -f $(docker images -q) || echo "Skipping...")' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment