Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save thejimnicholson/8f4e57cd9948eaf98f972cc93a38de50 to your computer and use it in GitHub Desktop.
Save thejimnicholson/8f4e57cd9948eaf98f972cc93a38de50 to your computer and use it in GitHub Desktop.
Get rid of all old docker container instances
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