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
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
本文标题:Docker 容器日志配置
本文链接:https://www.haomeiwen.com/subject/hqouhktx.html
网友评论