ansible-role-docker/files/docker-prune-dangling-image...

6 lines
175 B
Bash

#!/usr/bin/env bash
# "system" prune, because pruning images only leaves a lot of garbage around
docker system prune --force >> /var/log/docker-system-prune.log 2>&1
exit 0