docker.io连接超时的处理,用代理网站
docker pull的时候会超时:
Error response from daemon: Get "https://registry-1.docker.io/v2/": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
这时可以找一些代理网站,比如
https://docker.zhai.cm
https://a.ussh.net
https://docker.m.daocloud.io
然后把代理网站名加到镜像前面,就可能可以了,例如:
docker pull docker.zhai.cm/semitechnologies/weaviate:latest
注意,这时运行的命令也要加上代理网站名:
docker run -d -p 8080:8080 --name weaviate -e AUTHENTICATION_ANONYMOUS_ACCESS_ENABLED=true -e PERSISTENCE_DATA_PATH="./data" docker.zhai.cm/semitechnologies/weaviate:latest