Last active
November 5, 2016 10:18
-
-
Save dido18/1e31b1b59b0d7f2e80fb29aa665ef362 to your computer and use it in GitHub Desktop.
Script bash for deleting all the images and the containers.
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
#!/bin/bash | |
# Delete all containers | |
docker rm $(docker ps -a -q) | |
# Delete all images | |
docker rmi $(docker images -q) | |
# Delete allthe servicex (Docke swarm mode) | |
docker service ls -q | xargs docker service rm |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment