by anonfunction · 11y ago · 0 comments
docker rmi -f $(docker images | grep "^<none>" | awk "{print \$3}")
I agree with everything else you're saying completely. Although messaging a value prop is hard when you have so many use cases. We faced the same issue and ended up trying to segment users as quickly and high up in the funnel as possible so we could speak directly to their needs. docker images -f "dangling=true" -q | xargs -r docker rmi docker images -qf dangling=true | xargs -r docker rmi
Along with: docker ps -aqf status=exited | xargs -r docker rm
You've got two essential Docker aliases for cleaning up your dev environment. docker ps -q | xargs docker stats