SQB*_*SQB 9 hyper-v docker windows-10 docker-for-windows
我已经在使用 Hyper-V 的 Windows 10 机器上安装了 Docker for Windows。
打开一个窗口(Powershell 或常规的旧命令都可以)并键入 后docker run hello-world,我得到以下响应。
Unable to find image 'hello-world:latest' locally
C:\Program Files\Docker\Docker\Resources\bin\docker.exe: Error response from daemon: Get https://registry-1.docker.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers).
See 'C:\Program Files\Docker\Docker\Resources\bin\docker.exe run --help'.
Run Code Online (Sandbox Code Playgroud)
或者,最近:
Unable to find image 'hello-world:latest' locally
C:\Program Files\Docker\Docker\Resources\bin\docker.exe: Error response from daemon: Get https://registry-1.docker.io/v2/: dial tcp: lookup registry-1.docker.io on 192.168.65.1:53: read udp 192.168.65.2:44376->192.168.65.1:53: i/o timeout.
See 'C:\Program Files\Docker\Docker\Resources\bin\docker.exe run --help'.
Run Code Online (Sandbox Code Playgroud)
正如我在相关问题中所述,Docker for Windows 带有自己明显不可更改的网络适配器DockerNAT. 我想我需要与外界建立联系,但我不知道该怎么做。
我找到了更改为固定 DNS 的建议,我已经这样做了(8.8.8.8准确地说是 )。没有要设置的代理。
| 归档时间: |
|
| 查看次数: |
8356 次 |
| 最近记录: |