Skip to content

Instantly share code, notes, and snippets.

View nisshiee's full-sized avatar

Hirokazu Nishioka nisshiee

View GitHub Profile
#!/bin/sh
remove_dangling() {
echo "Removing dangling images ..."
docker rmi $(docker images -f dangling=true -q)
}
remove_stopped_containers() {
echo "Removing stopped containers ..."
docker rm $(docker ps -qa)