I'm using scrapy splash inside a docker container, but the image disk usage increase rapidly until it eats out all available space. How can the log files be removed and how to limit the available size for the splash logs?
Thanks
I'm using scrapy splash inside a docker container, but the image disk usage increase rapidly until it eats out all available space. How can the log files be removed and how to limit the available size for the splash logs?
Thanks
To find out the log file of Splash container, use this command:
where
containeris either an ID or name. Once you have the log file path, you can remove it, or better shrink it, e.g. by:If you want to limit the size of logs, you can configure it through Docker's
daemon.jsonconfig file. On Linux, it's default location is in/etc/docker(look into documentation for the right options).