Skip to content

Instantly share code, notes, and snippets.

@hoangong
Created May 28, 2023 20:57
Show Gist options
  • Save hoangong/747175ae219ba74bc84c326886b78ca7 to your computer and use it in GitHub Desktop.
Save hoangong/747175ae219ba74bc84c326886b78ca7 to your computer and use it in GitHub Desktop.
useful commands

clean up unused images that is older than 30 days:

0 0 * * 0 /usr/bin/docker image prune -a --force --filter "until=$(date -d "30 days ago" +%Y-%m-%d)T00:00:00"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment