-
-
Save butlerpeter/753972a6669a8f80fa79 to your computer and use it in GitHub Desktop.
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
# | |
function clearDockerContainerLog() { | |
_dirname=$(sudo ls /var/lib/docker/containers/ | grep $1) | |
sudo sh -c "cat /dev/null > /var/lib/docker/containers/$_dirname/$_dirname-json.log" | |
_dirname="" | |
} | |
alias clean-docker-log="clearDockerContainerLog" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment