RolandMa1986
感谢回复,如果输出到控制台的话,日志量比较大的情况会不会产生问题。
因为docker
官方说容器控制台输出会落盘
By default, Docker captures the standard output (and standard error) of all your containers, and writes them in files using the JSON format. The JSON format annotates each line with its origin (stdout or stderr) and its timestamp. Each log file contains information about only one container.
这种情况是不是还要修改docker的log-driver 并进行额外的配置?以免磁盘被写满
{
"log-driver": "json-file",
"log-opts": {
"max-size": "10m",
"max-file": "3"
}
}