[*] 更新 init docker 源
All checks were successful
Build Docker Image / Explore-Gitea-Actions (push) Successful in 17s
All checks were successful
Build Docker Image / Explore-Gitea-Actions (push) Successful in 17s
This commit is contained in:
parent
ea7ca60477
commit
6f8cd5cc22
@ -27,18 +27,19 @@ else
|
||||
echo "deb [signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://mirrors.martin98.com/repository/docker-ce/linux/$lsb_dist $release stable" > /etc/apt/sources.list.d/docker.list
|
||||
|
||||
curl -sSL https://git.martin98.com/MartinFarm/init/raw/branch/main/docker-install.sh | sh
|
||||
cat > /etc/docker/daemon.json <<EOF
|
||||
fi
|
||||
|
||||
cat > /etc/docker/daemon.json <<EOF
|
||||
{
|
||||
"registry-mirrors": [
|
||||
"https://docker.martin98.com",
|
||||
"https://docker.mirrors.martin98.com",
|
||||
"https://registry-docker.martin98.com",
|
||||
"https://registry-dockerhub.hk.martin98.com"
|
||||
]
|
||||
}
|
||||
EOF
|
||||
if pidof systemd >/dev/null 2>&1; then
|
||||
systemctl restart docker
|
||||
else
|
||||
echo "systemctl 不存在,跳过 docker 重启。"
|
||||
fi
|
||||
if pidof systemd >/dev/null 2>&1; then
|
||||
systemctl restart docker
|
||||
else
|
||||
echo "systemctl 不存在,跳过 docker 重启。"
|
||||
fi
|
Loading…
x
Reference in New Issue
Block a user