docker container limits the size of the log

docker container limits the size of the log

 
  • Environmental log generation amount is too large to be burst disk

If you have already created /etc/docker/daemon.json exists without creating


 
"log-driver":"json-file", "log-opts":{ "max-size" :"50m","max-file":"1"}
  • Increase log-opts parameters
"log-driver":"json-file",
  "log-opts":{ "max-size" :"50m","max-file":"1"}
  • Loading a configuration file, and restart
 
sudo systemctl daemon-reload && sudo systemctl restart docker

Guess you like

Origin www.cnblogs.com/fqnb001/p/12575068.html