Skip to content

Instantly share code, notes, and snippets.

@ashic
Created April 11, 2017 17:11
Show Gist options
  • Select an option

  • Save ashic/85f4e498888cf9004be465917ce984b8 to your computer and use it in GitHub Desktop.

Select an option

Save ashic/85f4e498888cf9004be465917ce984b8 to your computer and use it in GitHub Desktop.
Delete all images created today
docker rmi $(docker images --all --format "{{.ID}}\t{{.CreatedAt}}\t{{.Size}}" | grep `date +%Y-%m-%d` | awk '{print $1}')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment