windows中按照docker后,在cmd中运行: docker run ... 命令时报如下的错误:
Unable to find image 'hello-world:latest' locally
docker: Error response from daemon: Get "https://registry-1.docker.io/v2/": dial tcp: lookup registry-1.docker.io on 192.168.65.5:53: no such host.
实际原因也比较浅显,因为连不上官方的docker仓库:https://registry-1.docker.io/v2/
只要配置国内的镜像仓库就可以,配置如下:
阿里云获取容器镜像加速器地址:
{{uploading-image-937630.png(uploading...)}}