docker hub被墙后会出来类似下面的问题

ubuntu@VM-20-4-ubuntu:~/fastgpt$ sudo docker pull justsong/one-api
Using default tag: latest
latest: Pulling from justsong/one-api
c6a83fedfae6: Retrying in 10 seconds 
8d2c69fb1997: Retrying in 10 seconds 
05e17053152f: Retrying in 1 second 
5efbb6704321: Waiting 
error pulling image configuration: download failed after attempts=6: dial tcp 130.211.15.150:443: connect: connection refused

解决方式

更换境外镜像(亲测目前可行) 修改/etc/docker/daemon.json 设置俄罗斯国家的镜像

{
	"registry-mirrors":[
		"https://docker.m.daocloud.io",
		"https://huecker.io",
		"https://dockerhub.timeweb.cloud",
		"https://noohub.ru"
	]
}

//改完要重启docker
sudo systemctl restart docker