Created
May 18, 2024 05:42
-
-
Save thejimnicholson/8f4e57cd9948eaf98f972cc93a38de50 to your computer and use it in GitHub Desktop.
Get rid of all old docker container instances
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
for a in $(docker ps -a | tail +2 | cut -d' ' -f1); { docker rm $a; } | |
docker image prune -a |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment