initial commit

This commit is contained in:
2026-03-18 03:29:25 +08:00
commit 146c2c5f35
37 changed files with 1445 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
#!/usr/bin/env bash
set -e
echo "=========================================="
echo "=== Configuring Runflare Docker mirror ==="
echo "=========================================="
mkdir -p /etc/docker
if [[ -f /etc/docker/daemon.json ]]; then
cp /etc/docker/daemon.json /etc/docker/daemon.json.bak
echo "Backup created: /etc/docker/daemon.json.bak"
fi
cat > /etc/docker/daemon.json <<EOF
{
"registry-mirrors": [
"https://mirror-docker.runflare.com"
]
}
EOF
systemctl daemon-reload
systemctl restart docker
echo "Runflare Docker mirror applied."