Skip to content

Instantly share code, notes, and snippets.

@jeremyvdw
jeremyvdw / docker_cleanup
Created July 1, 2014 11:27
Docker: cleans exited containers and unused images
# delete all non-running container
docker ps -a | grep 'Exit' | awk '{print $1}' | xargs docker rm
# delete unused images
docker images | grep '<none>' | awk '{print $3}' | xargs docker rmi
# coding=UTF-8
from __future__ import division
import re
# This is a naive text summarization algorithm
# Created by Shlomi Babluki
# April, 2013
class SummaryTool(object):