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
Bash
Executable File

#!/bin/bash
docker images -q -f dangling=true | xargs --no-run-if-empty --delim='\n' docker rmi