Created
December 17, 2021 14:07
-
-
Save serhiinkh/0cee68c67dc9084fa2aae37de2f56010 to your computer and use it in GitHub Desktop.
Clear docker logs on mac
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
clear_docker_logs() { | |
echo "truncate -s 0 /var/lib/docker/containers/*/*-json.log; exit" | nc -U ~/Library/Containers/com.docker.docker/Data/debug-shell.sock | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment