Created
January 17, 2019 14:05
-
-
Save javiervivanco/a9144f558b0543a9f4be7a7b1d1d382a to your computer and use it in GitHub Desktop.
clear big docker's logs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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