unifios-utilities/container-common/on_boot.d/05-container-common.sh
PavelKuzub 4162127058
Added container-common for #100 (#102)
* 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>
2021-01-25 00:33:51 -08:00

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;