Last active
April 8, 2019 08:24
-
-
Save a-sync/8d1835d776e9be986d46635d74518f43 to your computer and use it in GitHub Desktop.
Clean the logs of a specific 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 -e | |
CONTAINER=$1 | |
echo "" > $(docker inspect --format='{{.LogPath}}' ${CONTAINER}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment