Remove exited Docker Containers

Posted: April 26, 2016 in Work Stuff

For the next time I have to wade through the guts of Google Kubernetes Cloud trying to clean up all the exited, but not removed Docker containers….

sudo docker rm -v $(sudo docker ps -a -q -f status=exited)

Advertisements

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 )

Google+ photo

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

Connecting to %s