but now the log files have a size of 10mb. (before there was only one big log file in each container folder)
Maybe the containers were created before the daemon.json.
After the change to 2m the Debian Docker host was restarted and the containers were recreated with Portainer.
Unfortunately I don’t understand why the file size for the log files is not taken over.
Is there a minimum file size for the parameter “max-size”?
About the system:
Debian 12 with Docker 26
Container: NodRed, InfluxDB1.8, Grafana
Recreated or restarted? The daemon configuration is just to set the defaults. Check the container metadata (you can do it in portainer too) and see if the log-opts appear there too. If not, you will have to delete the container and recreate it.
I think recreated. (Portainer : Container → Container details of the container ->Dublicate/Edi → Deploy the Container)
The Container get a new ID.
Docker run as Service at the Debian Host.
Is it possible that the daemon.json settings have to be loaded into the Docker service (containerd.service , docker.service)?