• Hi, Pleskians! We are running a UX testing of our upcoming product intended for server management and monitoring.
    We would like to invite you to have a call with us and have some fun checking our prototype. The agenda is pretty simple - we bring new design and some scenarios that you need to walk through and succeed. We will be watching and taking insights for further development of the design.
    If you would like to participate, please use this link to book a meeting. We will sent the link to the clickable prototype at the meeting.
  • (Plesk for Windows):
    MySQL Connector/ODBC 3.51, 5.1, and 5.3 are no longer shipped with Plesk because they have reached end of life. MariaDB Connector/ODBC 64-bit 3.2.4 is now used instead.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.

Input enable log rotation for docker container

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:


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.
 
I have now tested that after re-creating the container, it is now correctly rotating the log file as it reaches the 10M limit. So the /etc/docker/daemon.json file is working correctly. It's not enough to restart the docker service, it is necessary to re-create the docker containers.
 
Back
Top