Skip to content

Instantly share code, notes, and snippets.

@a-sync
Last active April 8, 2019 08:24
Show Gist options
  • Save a-sync/8d1835d776e9be986d46635d74518f43 to your computer and use it in GitHub Desktop.
Save a-sync/8d1835d776e9be986d46635d74518f43 to your computer and use it in GitHub Desktop.
Clean the logs of a specific docker container
#!/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