Last active
July 5, 2018 13:28
-
-
Save 4383/4b796da5f63702d9eb1e6056f916084b to your computer and use it in GitHub Desktop.
docker tips and tricks
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
# remove all container by ID | |
for el in $(docker ps -a --format "{{.ID}}"); do docker rm $el; done | |
# remove all images by ID | |
for el in $(docker images --format "{{.ID}}"); do docker rmi $el; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment