Created
August 2, 2017 08:57
-
-
Save mewm/d102270494da6221c9cc1c1062860e17 to your computer and use it in GitHub Desktop.
Docker clean log command
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
#!/bin/bash | |
rm $(docker inspect $1 | grep -G '"LogPath": "*"' | sed -e 's/.*"LogPath": "//g' | sed -e 's/",//g'); | |
#Invocation: | |
#$sudo ./docker-logs-clean.sh <container-name>; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment