Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejs
title/etc/docker/daemon.json
{
  "log-driver": "json-file",
  "log-opts": {"max-size": "10m", "max-file": "3"}
}

Clearing logs manually

Running truncate -s 0 /var/lib/docker/containers/*/*-json.log will clear ALL logs.