Created
November 23, 2018 08:50
-
-
Save lemnik/af213f0504415ecbc1e457d9e84fd501 to your computer and use it in GitHub Desktop.
Clear all Docker containers and volumes
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 | |
docker container rm `docker container ls -a | cut -d " " -f1 | tail -n +2`; docker volume prune -f |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment