vi /etc/docker/daemon.json
{
...
"log-driver": "json-file",
"log-opts": {
# 日志文件最大1G
"max-size": "1000m",
# 日志文件数量最大为50个
"max-file": "50"
},
...
}
vi /etc/docker/daemon.json
{
...
"log-driver": "json-file",
"log-opts": {
# 日志文件最大1G
"max-size": "1000m",
# 日志文件数量最大为50个
"max-file": "50"
},
...
}