Docker configs
This commit is contained in:
parent
eeedaa0928
commit
2795c35995
@ -1447,8 +1447,18 @@ EOF
|
|||||||
|
|
||||||
elif [ "$OSRELEASE" = "openmandriva" ]; then
|
elif [ "$OSRELEASE" = "openmandriva" ]; then
|
||||||
dnf -y --refresh install docker curl docker-compose traefik-certs-dumper duplicity duplicity-backend-b2 duplicity-backend-local duplicity-backend-s3_boto3 duplicity-backend-ssh_paramiko
|
dnf -y --refresh install docker curl docker-compose traefik-certs-dumper duplicity duplicity-backend-b2 duplicity-backend-local duplicity-backend-s3_boto3 duplicity-backend-ssh_paramiko
|
||||||
sed -i -e "s,^OPTIONS=.*,OPTIONS='--log-opt max-size=200m --log-opt max-file=3'," /etc/sysconfig/docker
|
# Put in log rotation fix for docker container logs
|
||||||
|
cat > /etc/docker/daemon.json <<EOF
|
||||||
|
{
|
||||||
|
"max-concurrent-downloads": 3,
|
||||||
|
"max-download-attempts": 20,
|
||||||
|
"log-driver": "json-file",
|
||||||
|
"log-opts": {
|
||||||
|
"max-size": "200m",
|
||||||
|
"max-file": "3"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
EOF
|
||||||
systemctl enable --now docker
|
systemctl enable --now docker
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user