- images cleanup
docker rmi $(docker images --filter "dangling=true" -q --no-trunc)
- image cleanup based on name
docker rmi $(docker images | grep "asia.gcr.io" | awk '{print $3}')
- cleanup container
docker kill $(docker ps -q)
docker rm $(docker ps -aq)
docker rm $(docker ps -aq --no-trunc --filter "status=exited")
- system prune
docker system prune
- system prune with volume
docker system prune --volume