Skip to content

Docker Configuration

Install

Here it is

Setup log rotate on host

sudo bash -c "cat >> /etc/docker/daemon.json" << EOL
{
  "log-driver": "json-file",
  "log-opts": {
    "max-size": "10m",
    "max-file": "3"
  }
}
EOL

sudo systemctl restart docker