Docker logs are way too big with default configuration, and it's eating up my server space.
I know I can configure /etc/docker/daemon.json and add something like this:
{
"log-driver": "json-file",
"log-opts": {
"max-size": "10m",
"max-file": "10"
}
}
and restart Docker service. But it only works for NEW containers.
Is there a way to update log rotation configuration of exsisting container without recreating it?