Use a known stable docker

This commit is contained in:
Bernhard Rosenkränzer 2025-02-21 04:41:30 +01:00
parent e99d23ec77
commit 8ff76fdd39

View File

@ -1442,6 +1442,10 @@ EOF
curl -sfL https://raw.githubusercontent.com/ldez/traefik-certs-dumper/master/godownloader.sh | bash -s -- -b $(go env GOPATH 2>/dev/null)/bin v2.8.1 &> /dev/null
[ $? -ne 0 ] && failcheck "Couldn't install traefik certs dumper"
# Restart docker daemon
systemctl restart docker
elif [ "$OSRELEASE" = "openmandriva" ]; then
dnf -y --refresh install curl traefik-certs-dumper duplicity duplicity-backend-b2 duplicity-backend-local duplicity-backend-s3_boto3 duplicity-backend-ssh_paramiko
if [ "$USE_PODMAN" = "true" ]; then
@ -1455,16 +1459,27 @@ EOF
mkdir -p /var/run
ln -s /run/user/0/podman/podman.sock /var/run/docker.sock
else
dnf -y --refresh install docker docker-compose
#wget https://file-store.openmandriva.org/api/v1/file_stores/142e76f40a398c59aaafa727bdf889fb1511d715
#sudo rpm -Uvh --oldpackage docker-27.5.0*
# Grab an older version of docker instead of just "dnf install docker"
# because 28.0.0 is potentially dangerous, see
# https://github.com/moby/moby/issues/49513
# https://github.com/moby/moby/issues/49511
# https://github.com/moby/moby/issues/49498
if [ "$(uname -m)" = "aarch64" ]; then
wget https://file-store.openmandriva.org/api/v1/file_stores/c4319bf7ad874084b0cf9e5106a2c4eb865b88a5
elif cat /proc/cpuinfo |grep -q AuthenticAMD; then
wget https://file-store.openmandriva.org/api/v1/file_stores/f8338ff5899d0904cce9b50424df73234bda15a1
else
wget https://file-store.openmandriva.org/api/v1/file_stores/d2cad686d6b74998fd1bda211b1e2763edd40bbf
fi
sudo dnf -y install docker-*.rpm
dnf -y --refresh install docker-compose
sed -i -e "s,^OPTIONS=.*,OPTIONS=''," /etc/sysconfig/docker
echo 'DOCKER_STORAGE_OPTIONS = --storage-driver btrfs' >>/etc/sysconfig/docker-storage
# Put in log rotation fix for docker container logs
cat > /etc/docker/daemon.json <<EOF
{
"max-concurrent-downloads": 2,
"max-download-attempts": 5000,
"max-concurrent-downloads": 3,
"max-download-attempts": 50,
"log-driver": "json-file",
"log-opts": {
"max-size": "200m",
@ -1472,13 +1487,11 @@ EOF
}
}
EOF
systemctl enable --now containerd
systemctl enable --now docker
fi
fi
# Restart docker daemon
systemctl restart docker
kill -9 $SPINPID &> /dev/null
echo -ne "done."
fi