|
|
@ -277,3 +277,22 @@ fi |
|
|
|
apt-get install -y pv buffer < /dev/null |
|
|
|
apt-get install -y postgresql-client </dev/null |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
## |
|
|
|
## Limit docker log size |
|
|
|
## |
|
|
|
|
|
|
|
## XXXvlab: if file changed, it would be nice to reload daemon, |
|
|
|
## as a starter, but containers will need to be re-created to |
|
|
|
## take effect |
|
|
|
touch /etc/docker/daemon.json && |
|
|
|
yq e -i ' |
|
|
|
.log-driver = "json-file", |
|
|
|
.log-opts = { |
|
|
|
"max-size": "10m", |
|
|
|
"max-file": "5" |
|
|
|
} |
|
|
|
' /etc/docker/daemon.json || exit 1 |
|
|
|
|
|
|
|
|