docker desktop安装完成之后运行
![](https://img.haomeiwen.com/i5753500/1c77e85563fdf319.png)
提示:Unable to find image 'hello-world:latest' locally
![](https://img.haomeiwen.com/i5753500/f417197cdbef271c.png)
因为docker服务器在国外,需要我们为docker设置国内阿里云的镜像加速器:https://alzgoonw.mirror.aliyuncs.com
设置如下:
![](https://img.haomeiwen.com/i5753500/140ae637a542c507.png)
![](https://img.haomeiwen.com/i5753500/e52e382f0414aba8.png)
配置如下:
{
"builder": {
"gc": {
"defaultKeepStorage": "20GB",
"enabled": true
}
},
"experimental": false,
"features": {
"buildkit": true
},
"registry-mirrors": [
"https://alzgoonw.mirror.aliyuncs.com"
]
}
安装之后重新运行测试可以:
![](https://img.haomeiwen.com/i5753500/e12258662c6afb41.png)
网友评论