#!/bin/sh

# Delete all stopped containers more than a day old (including data-only containers).
docker container prune --filter "until=24h" --force

# Delete all dangling images more than 24h old
docker image prune --filter "until=24h" --force

# Delete all tagged images more than a week old
docker image prune -a --filter "until=168h" --force
