Closed SerhiiZahuba closed 2 years ago
The screenshot is hard to read (use real text) but ultimately this is a docker question, so please refer to the docker documentation as of log rotation, ie:
cat /etc/docker/daemon.json
{
"log-driver": "json-file",
"log-opts": {
"max-size": "250m",
"max-file": "3"
}
}
Sometimes I see that a very large log is growing in one of the containers.
The screenshot shows an example of what is in this log. Sometimes the log size reaches more than 10 gigabytes. How can I remove it?
2.6G ./containers/d4c09bfb7f73b6fb92e06bea865f2f43d8c6d0c6907af46677801e95d700f0f7/d4c09bfb7f73b6fb92e06bea865f2f43d8c6d0c6907af46677801e95d700f0f7-json.log