Configure docker to roll containers logs
Problem
Currently docker logs are not rolled so they could use all disk space left on device.
Possible fix is to configure docker in daemon.json
file to roll logs after they reach configured max-size.
Possible fix
Example configuration:
{
"log-driver": "json-file",
"log-opts": {
"max-size": "10m",
"max-file": 3
}
}
Links
Edited by Piotr Orzechowski