problem description
After the container in the server has been running for several days, the disk is full. After looking for a large file, it is found that there is a very large file ending with log
in the container
folder under the / var/lib/docker
path. Start the program after deletion, and check the directory
the environmental background of the problems and what methods you have tried
the temporary solution at that time was to write a script to delete the log file on a regular basis.
There is only print output in thecode, and the log file is not saved.
then modify the code to remove the printout, and the log file no longer appears. I suspect that docker automatically collected these prints.
In the end, I"m not sure if the server disk is full because docker automatically collects these prints . Please give us some advice.