Docker 容器日志配置
2020-07-16 本文已影响0人
noteby
touch /etc/docker/daemon.json
{
"log-driver": "json-file",
"log-opts": {
"max-size": "10m",
"max-file": "3",
"compress": "true"
}
}
systemctl daemon-reload
systemctl restart docker