docker安装tidb, pull不了镜像

docker安装tidb, pull镜像不了,请问有什么办法解决吗?咱们的网和别人家的网不是同一张网。

[root@server01 tidb-docker-compose]# docker-compose pull
Pulling pd0 … error
Pulling pd1 … error
Pulling pd2 … error
Pulling tikv0 … error
Pulling tikv1 … error
Pulling tikv2 … error
Pulling tidb … error
Pulling tispark-master … error
Pulling tispark-slave0 … error
Pulling tidb-vision … error
Pulling pushgateway … error
Pulling prometheus … error
Pulling grafana … error

ERROR: for tidb Get “https://registry-1.docker.io/v2/”: context deadline exceeded (Client.Timeout exceeded while awaiting headers)

ERROR: for pd2 Get “https://registry-1.docker.io/v2/”: dial tcp 104.244.45.246:443: i/o timeout

ERROR: for tikv2 Get “https://registry-1.docker.io/v2/”: context deadline exceeded (Client.Timeout exceeded while awaiting headers)

ERROR: for tidb-vision Get “https://registry-1.docker.io/v2/”: dial tcp 104.244.45.246:443: i/o timeout

ERROR: for pushgateway Get “https://registry-1.docker.io/v2/”: context deadline exceeded (Client.Timeout exceeded while awaiting headers)

ERROR: for pd1 Get “https://registry-1.docker.io/v2/”: dial tcp 104.244.45.246:443: i/o timeout

ERROR: for tispark-slave0 Get “https://registry-1.docker.io/v2/”: dial tcp 104.244.45.246:443: i/o timeout

ERROR: for pd0 Get “https://registry-1.docker.io/v2/”: dial tcp 104.244.45.246:443: i/o timeout

ERROR: for grafana Get “https://registry-1.docker.io/v2/”: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)

ERROR: for tispark-master Get “https://registry-1.docker.io/v2/”: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)

ERROR: for prometheus Get “https://registry-1.docker.io/v2/”: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)

ERROR: for tikv0 Get “https://registry-1.docker.io/v2/”: dial tcp 202.160.129.164:443: i/o timeout

ERROR: for tikv1 Get “https://registry-1.docker.io/v2/”: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
ERROR: Get “https://registry-1.docker.io/v2/”: context deadline exceeded (Client.Timeout exceeded while awaiting headers)
Get “https://registry-1.docker.io/v2/”: dial tcp 104.244.45.246:443: i/o timeout
Get “https://registry-1.docker.io/v2/”: context deadline exceeded (Client.Timeout exceeded while awaiting headers)
Get “https://registry-1.docker.io/v2/”: dial tcp 104.244.45.246:443: i/o timeout
Get “https://registry-1.docker.io/v2/”: context deadline exceeded (Client.Timeout exceeded while awaiting headers)
Get “https://registry-1.docker.io/v2/”: dial tcp 104.244.45.246:443: i/o timeout
Get “https://registry-1.docker.io/v2/”: dial tcp 104.244.45.246:443: i/o timeout
Get “https://registry-1.docker.io/v2/”: dial tcp 104.244.45.246:443: i/o timeout
Get “https://registry-1.docker.io/v2/”: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
Get “https://registry-1.docker.io/v2/”: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
Get “https://registry-1.docker.io/v2/”: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
Get “https://registry-1.docker.io/v2/”: dial tcp 202.160.129.164:443: i/o timeout
Get “https://registry-1.docker.io/v2/”: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
[root@server01 tidb-docker-compose]#

学习中,还不会,借楼问一下,谁有没有ansible 安装tidb 的文档啊,详细点的,我还在入门学习中

1 个赞

看着像网络问题啊。

1 个赞

[root@server01 tidb-docker-compose]# ping 104.244.45.246
PING 104.244.45.246 (104.244.45.246) 56(84) bytes of data.

是镜像服务器无法连接,可能是官方docker镜像搞到github,然后连不上。

github有时候会被屏蔽,有时候可以正常访问。

1 个赞

docker的问题试试这个
mkdir /etc/docker

cat > /etc/docker/daemon.json << EOF
{
“registry-mirrors”: [“https://docker.m.daocloud.io”,“https://docker.chenby.cn”,“http://dockerhub.aliangedu.cn”]
}
EOF
systemctl restart docker

1 个赞

你这不是网络连接不上,你换个镜像地址,官网文档有参考

ansible 没啥用了,现在都是用tiup装,tiup本身也带ansible功能,比如exec执行命令

我想练习一下,你有没有文档呀,有的话分享一个呗