【已解决】docker: Error response from daemon: Get
·
具体解决方法如下:
1.备份原来的配置文件
cp /etc/docker/daemon.json{,.bak}
2.删除或修改daemon.json 文件,添加如下配置
rm -rf /etc/docker/daemon.json
sudo tee /etc/docker/daemon.json <<-'EOF'
> {
> "registry-mirrors": [
> "https://docker.1ms.run",
> "https://docker.1panel.live/"
> ]
> }
> EOF
最后解决方案,如下:
打开Docker的UI,在Setting-> Docker Engine,将输入框的内容改为如下:
{
"builder": {
"gc": {
"defaultKeepStorage": "20GB",
"enabled": true
}
},
"features": {
"buildkit": true
},
"registry-mirrors": [
"https://dockerpull.pw",
"https://dockerhub.icu",
"https://hub.rat.dev",
"https://register.librax.org",
"https://docker-0.unsee.tech",
"https://docker-cf.registry.cyou",
"https://docker.1panel.live"
],
"dns":[
"8.8.8.8",
"114.114.114.114"
]
}
3.重新加载配置文件和重启docker
sudo systemctl daemon-reload
sudo systemctl restart docker
更多推荐
所有评论(0)