Skip to content

Instantly share code, notes, and snippets.

@martinratinaud
Created June 29, 2021 11:33
Show Gist options
  • Save martinratinaud/7c0d64215be83d07f531ee70650955cb to your computer and use it in GitHub Desktop.
Save martinratinaud/7c0d64215be83d07f531ee70650955cb to your computer and use it in GitHub Desktop.
Remove all docker logs at once
sudo sh -c 'truncate -s 0 $(docker system info | grep "Docker Root Dir" | cut -d ":" -f2 | cut -d " " -f2-)/containers/*/*-json.log';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment