本人网络环境为辽宁大连100M网通光纤。服务器为esxi跑Ubuntu server 18.04,脚本中提供的两个docker国内源不知为何下载速度奇慢无比,而且经常重置,导致安装失败。我连续三天安装了超过20次,一次也没成功,国外docker源尝试也是失败。
找到了一个docker的163源,自行替换了脚本中七牛云的地址,运行后秒速下载完成。现提供163源给楼主,请楼主考虑是否加入脚本中。
有一样情况的小伙伴也可以自行替换。
http://hub-mirror.c.163.com
错误提示:
docker-cn:
############################################################################### #
# 1. 是否将系统源切换为中科大(USTC)源: 是
# 2. 是否将用户添加至 Docker 用户组: 是,添加用户为 *
# 3. 是否将 Docker 源切换至国内源: 是,切换源选择:docker-cn
# 4. 您的设备类型为: qemux86-64
# 5. 您的 hassio 数据路径为: /usr/share/hassio
############################################################################### #
请确认以上信息,继续请按任意键,如需修改请输入 Ctrl+C 结束任务重新执行脚本。
[info]: 切换系统网络源.....
Hit:1 [url]https://mirrors.aliyun.com/docker-ce/linux/ubuntu[/url] bionic InRelease
Hit:2 [url]http://mirrors.ustc.edu.cn/ubuntu[/url] bionic InRelease
Hit:3 [url]http://mirrors.ustc.edu.cn/ubuntu[/url] bionic-security InRelease
Hit:4 [url]http://mirrors.ustc.edu.cn/ubuntu[/url] bionic-updates InRelease
Hit:5 [url]http://mirrors.ustc.edu.cn/ubuntu[/url] bionic-backports InRelease
Reading package lists... Done
Building dependency tree
Reading state information... Done
9 packages can be upgraded. Run 'apt list --upgradable' to see them.
[info]: 安装 hassio 必要依赖.....
Reading package lists... Done
Building dependency tree
Reading state information... Done
net-tools is already the newest version (1.60+git20161116.90da8a0-1ubuntu1).
socat is already the newest version (1.7.3.2-2ubuntu2).
jq is already the newest version (1.5+dfsg-2).
avahi-daemon is already the newest version (0.7-3.1ubuntu1.2).
curl is already the newest version (7.58.0-2ubuntu3.7).
0 upgraded, 0 newly installed, 0 to remove and 9 not upgraded.
/usr/bin/docker
[info]: 发现系统已安装 docker,跳过 docker 安装
[info]: 切换 Docker 源为国内源....
[info]: 切换国内源完成
[info]: 安装 hassio......
从 hub.docker.com 下载 homeassistant/qemux86-64-homeassistant:0.95.4......
0.95.4: Pulling from homeassistant/qemux86-64-homeassistant
e7c96db7181b: Pull complete
debe2615936a: Pull complete
6aefe54a5c96: Pull complete
4656e5ce698a: Pull complete
aa7964a8c16f: Downloading 5.823MB/31.53MB
e130ee4f643b: Download complete
a419e5bd86ac: Download complete
c63d98b91529: Download complete
d745871d8fd0: Downloading 4.271MB/37.89MB
5122fc8112f9: Download complete
e5e7776d833d: Retrying in 1 second
e35931d08ba5: Waiting
c85c1c5208ac: Waiting
d0efd85f96bd: Waiting
25a5dba3751c: Waiting
418272793469: Waiting
4c057f778d47: Waiting
cea70c797c98: Waiting
d846d5330fe3: Waiting
Get [url]https://production.cloudflare.docker.com/registry-v2/docker/registry/v2/blob[/url] s/sha256/e5/e5e7776d833de003fef252b7ff04f342a255ec97a8a7322985bc8e9baeddc8a1/dat a?verify=1562293908-ZLl8B07JgerYxfyJpBfrOrdxmAE%3D: net/http: TLS handshake time out
[ERROR]: 从 docker 下载 homeassistant/qemux86-64-homeassistant:0.95.4 失败,请检 查上方失败信息。
七牛云:
############################################################################### #
# 1. 是否将系统源切换为中科大(USTC)源: 是
# 2. 是否将用户添加至 Docker 用户组: 是,添加用户为 *
# 3. 是否将 Docker 源切换至国内源: 是,切换源选择:七牛云
# 4. 您的设备类型为: qemux86-64
# 5. 您的 hassio 数据路径为: /usr/share/hassio
############################################################################### #
请确认以上信息,继续请按任意键,如需修改请输入 Ctrl+C 结束任务重新执行脚本。
[info]: 切换系统网络源.....
Hit:1 [url]https://mirrors.aliyun.com/docker-ce/linux/ubuntu[/url] bionic InRelease
Hit:2 [url]http://mirrors.ustc.edu.cn/ubuntu[/url] bionic InRelease
Hit:3 [url]http://mirrors.ustc.edu.cn/ubuntu[/url] bionic-security InRelease
Hit:4 [url]http://mirrors.ustc.edu.cn/ubuntu[/url] bionic-updates InRelease
Hit:5 [url]http://mirrors.ustc.edu.cn/ubuntu[/url] bionic-backports InRelease
Reading package lists... Done
Building dependency tree
Reading state information... Done
10 packages can be upgraded. Run 'apt list --upgradable' to see them.
[info]: 安装 hassio 必要依赖.....
Reading package lists... Done
Building dependency tree
Reading state information... Done
net-tools is already the newest version (1.60+git20161116.90da8a0-1ubuntu1).
socat is already the newest version (1.7.3.2-2ubuntu2).
jq is already the newest version (1.5+dfsg-2).
avahi-daemon is already the newest version (0.7-3.1ubuntu1.2).
curl is already the newest version (7.58.0-2ubuntu3.7).
0 upgraded, 0 newly installed, 0 to remove and 10 not upgraded.
/usr/bin/docker
[info]: 发现系统已安装 docker,跳过 docker 安装
[info]: 切换 Docker 源为国内源....
[info]: 切换国内源完成
[info]: 安装 hassio......
从 hub.docker.com 下载 homeassistant/qemux86-64-homeassistant:0.95.4......
0.95.4: Pulling from homeassistant/qemux86-64-homeassistant
e7c96db7181b: Pull complete
debe2615936a: Pull complete
6aefe54a5c96: Pull complete
4656e5ce698a: Pull complete
aa7964a8c16f: Downloading 3.775MB
e130ee4f643b: Download complete
a419e5bd86ac: Download complete
c63d98b91529: Download complete
d745871d8fd0: Downloading 37.89MB/37.89MB
5122fc8112f9: Download complete
e5e7776d833d: Download complete
e35931d08ba5: Download complete
c85c1c5208ac: Download complete
d0efd85f96bd: Download complete
25a5dba3751c: Download complete
418272793469: Download complete
4c057f778d47: Downloading
cea70c797c98: Download complete
d846d5330fe3: Download complete
net/http: TLS handshake timeout
[ERROR]: 从 docker 下载 homeassistant/qemux86-64-homeassistant:0.95.4 失败,请检 查上方失败信息。