If the max-file value is set to 2, two files are created as shown below.
11111-json.log
11111-json.log.1
But here, when the 11111-json.log
file size is max-size
, the contents of 11111-json.log
are moved to 11111-json.log.1
, and the size of 11111-json.log
Becomes zero.
/var/log/container
At this point I lose the last log.
The log in the /var/log/container
path eventually links to /var/lib/docker/containers/~
, so if the file mentioned above works that way, the log will be lost.
How can't I be lost?