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

5 lines
84 B
Bash
Executable File

#!/bin/bash
for i in $(docker images -q -f dangling=true) ; do
docker rmi $i
done