【Docker】极简安装Docker,两分钟搞定,镜像稳定,告别超时
1.采用国内的轩辕镜像一键安装功能(感谢轩辕镜像)
bash <(wget -qO- https://xuanyuan.cloud/docker.sh)
2.轩辕免费的docker镜像拉取URL经常超时,建议更改URL配置:
sudo tee /etc/docker/daemon.json <<-'EOF'
{
"registry-mirrors": [
"https://do.nark.eu.org",
"https://dc.j8.work",
"https://docker.m.daocloud.io",
"https://dockerproxy.com",
"https://docker.mirrors.ustc.edu.cn",
"https://docker.nju.edu.cn"
]
}
EOF
sudo systemctl daemon-reload
sudo systemctl restart docker

浙公网安备 33010602011771号