设置Docker容器日志文件大小限制

shell``` vim /etc/docker/daemon.json

{ "log-driver":"json-file", "log-opts": {"max-size":"500m", "max-file":"3"} }

systemctl daemon-reload systemctl restart docker

updatedupdated2021-10-222021-10-22