Skip to content

Instantly share code, notes, and snippets.

@ichaida
Last active August 10, 2016 13:43
Show Gist options
  • Save ichaida/fcb92757334e2f446b85dcd16f05540c to your computer and use it in GitHub Desktop.
Save ichaida/fcb92757334e2f446b85dcd16f05540c to your computer and use it in GitHub Desktop.
Clear Docker logs

Clear Docker's container logs

For ZSH use noglobto escape the wildcards.

noglob truncate -s 0 /var/lib/docker/containers/*/*-json.log

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment