Skip to content

Instantly share code, notes, and snippets.

@javiervivanco
Created January 17, 2019 14:05
Show Gist options
  • Save javiervivanco/a9144f558b0543a9f4be7a7b1d1d382a to your computer and use it in GitHub Desktop.
Save javiervivanco/a9144f558b0543a9f4be7a7b1d1d382a to your computer and use it in GitHub Desktop.
clear big docker's logs
du -sh /var/lib/docker/containers/*| sort -h| grep -v K| awk -F '/' '{print $6}'| xargs docker inspect --format='{{.LogPath}}' | xargs tee
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment