johnrdorazio
Basic Pleskian
Currently I believe there is no way to enable log rotation for docker containers, using the provided docker plugin for Plesk.
I tried creating the file /etc/docker/daemon.json with these values:
And I restarted the docker service. Either it's not picking up the log-opts, or perhaps I need to re-create my container (rather than just restart it).
In any case it would be nice to be able to set these options both on the docker service level, and perhaps on the container level, directly in the Plesk Docker interface.
I tried creating the file /etc/docker/daemon.json with these values:
JSON:
{
"log-driver": "json-file",
"log-opts": {
"max-size": "10m",
"max-file": "3"
}
}
And I restarted the docker service. Either it's not picking up the log-opts, or perhaps I need to re-create my container (rather than just restart it).
In any case it would be nice to be able to set these options both on the docker service level, and perhaps on the container level, directly in the Plesk Docker interface.