Skip to content

Instantly share code, notes, and snippets.

View afrikaan-official's full-sized avatar
💭
I may be slow to respond.

Kaan afrikaan-official

💭
I may be slow to respond.
View GitHub Profile
@tugberkugurlu
tugberkugurlu / docker-things.sh
Created October 19, 2016 19:07
Docker CLI Cheatsheet
# List all stopped containers
docker ps --filter "status=exited"
# Remove all stopped containers
docker rm $(docker ps --filter "status=exited" -aq --no-trunc)
# Remove all unused images (http://stackoverflow.com/a/32723127)
docker rmi $(docker images --filter "dangling=true" -q --no-trunc)