當 Docker 拉取鏡像時出現 Error response from daemon: Get https://registry-1.docker.io/v2/: net/http: TLS handshake timeout 的問題時,一般是國外的源無法訪問,換成國內的就好了。
換源
配置文件:/etc/docker/daemon.json
加中國源,可以多加幾個:
{
"registry-mirrors": ["https://bytkgxyr.mirror.aliyuncs.com","https://registry.docker-cn.com","http://hub-mirror.c.163.com"]
}
然后重啟 Docker
service docker restart
