Cleaning up docker cruft

Here’s a quick tip I discovered recently:

I was tired of having complex shell commands to look at docker’s dead containers and unused images. Happily, new versions (API v1.25 onwards) have simple equivalents:

docker system prune
docker container prune
docker network prune
docker volume prune

Here’s a link to the documentation.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s