The blog about containerisation, virtual machines and useful shell snippets and findings

Docker oneliner to remove stale containers

docker ps -a | grep 'bundle' | cut -d' ' -f1 | xargs docker rm

remove stale images

docker images  -f="dangling=true" | xargs docker rmi