问题描述:
docker出现以下问题:
error pulling image configuration: download failed after attempts=6: dial tcp 157.240.16.50:443: connect: connection refused
解决办法
试了下网上更改为国内源没有办法,依然是连接拒绝.
输入以下指令即可:
sudo mkdir -p /etc/docker
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
}
拉取成功