Created
August 8, 2019 14:26
-
-
Save jeromedumas/31cda1f8852f43a4a29a60bcf886389b to your computer and use it in GitHub Desktop.
Commandes dockers utiles
This file contains 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
# secure cleaning with docker | |
docker system prune | |
# remove all untagged docker images | |
docker rmi -f $(docker images | grep "<none>" | awk "{print \$3}") | |
# remove all unused docker images | |
docker images -q |xargs docker rmi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment