Created
January 18, 2018 10:42
-
-
Save Hendrik44/97eb2edd2aea3e244faa54be0a87d6f7 to your computer and use it in GitHub Desktop.
Clear easily the logs from a docker container
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'); | |
# run this script like this: 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