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
上一篇 下一篇

猜你喜欢

热点阅读