3 ms·
That one-liner won't work (for me), it's missing a slash in the awk command. I have this aliased as `docker-rmi-junk` since it's so common. docker rmi -f $
by anonfunction 11y ago
That one-liner won't work (for me), it's missing a slash in the awk command. I have this aliased as `docker-rmi-junk` since it's so common.
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.
- Leynos 11y agoOr the marginally shorter: docker images -f "dangling=true" -q | xargs -r docker rmi
- anonfunction 11y agoLooks like my `docker-stats-all` alias: docker ps -q | xargs docker stats
- curun1r 11y agoYou can actually go even shorter: 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.