The folder /var/lib/docker size increases and can not be reduced
The folder /var/lib/docker size increases and can not reduce it, for that i tried to rotate the logs inside this folder by writing the following under each image inside docker-compose.yml file
......
logging:
driver: "json-file"
options:
max-file: 5
max-size: 10m
.....
however the above snippet of the code does not work? is there any way to rotate the logs of the docker