我正在尝试将ubuntu映像作为docker容器运行:
docker container run -it --name myubuntu ubuntu
但是我遇到了一个错误:
docker:来自守护程序的错误响应:Get https://registry-1.docker.io/v2/:拨打tcp:查询 10.0.2.3:53上的Registry-1.docker.io:阅读udp 10.0.2.15:55341->10.0.2.3:53:I / O超时。
这是我的docker container version
:
Client:
Version: 18.03.0-ce
API version: 1.37
Go version: go1.9.4
Git commit: 0520e24302
Built: Fri Mar 23 08:31:36 2018
OS/Arch: windows/amd64
Experimental: false
Orchestrator: swarm
Server: Docker Engine - Community
Engine:
Version: 19.03.3
API version: 1.40 (minimum version 1.12)
Go version: go1.12.10
Git commit: a872fc2f86
Built: Tue Oct 8 01:01:20 2019
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: v1.2.10
GitCommit: b34a5c8af56e510852c35414db4c1f4fa6172339
runc:
Version: 1.0.0-rc8+dev
GitCommit: 3e425f80a8c931f88e6d94a8c831b9d5aa481657
docker-init:
Version: 0.18.0
GitCommit: fec3683
答案 0 :(得分:1)
尝试一下:
docker-machine restart
与/或
docker-machine regenerate-certs