Last active
December 4, 2018 10:03
-
-
Save lightningspirit/283f9bb6af803a25e92956731ed3ca48 to your computer and use it in GitHub Desktop.
Docker Container & Images Remover
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
#!/usr/bin/env sh | |
docker rm $(docker ps -a | awk '{print $1}') | |
docker rmi $(docker images | awk '{print $3}') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment