This repository has been archived on 2021-04-14. You can view files and clone it, but cannot push or open issues/pull-requests.
bare-dotfiles/bin/clean-stale-images

3 lines
96 B
Plaintext
Raw Normal View History

2018-07-17 09:48:02 -04:00
#!/bin/bash
docker images -q -f dangling=true | xargs --no-run-if-empty --delim='\n' docker rmi