mirror of
https://github.com/unifi-utilities/unifios-utilities.git
synced 2024-08-30 18:32:21 +00:00
4162127058
* Added container-common Initial release of container-common section that includes setting a limit of container log size any container can have, to prevent filling up UDM storage with excessive logging. * Update README.md Clarified description of max log size Co-authored-by: TRUPaC <trupac@cs-mapping.com.ua>
6 lines
252 B
Bash
6 lines
252 B
Bash
#!/bin/sh
|
|
# This script runs before any custom containers start to adjust container common defaults
|
|
|
|
# Set a limit for container logs. 104857600 Bytes = 100 Megabytes
|
|
sed -i 's/max_log_size = -1/max_log_size = 104857600/g' /etc/containers/libpod.conf;
|