最新版本的docker(版本0.6)已通过安装包docker toolbox
安装在我的笔记本电脑(Windows 10 LTSB)中。它似乎安装正确,因为我在启动docker quickstart terminal
时看到了docker的徽标。当我运行docker run hello-world
时,它会返回
$ docker run hello-world
D:\Program Files\Docker Toolbox\docker.exe: An error occurred trying to connect: Post https://192.168.99.100:2376/v1.24/containers/create: dial tcp 192.168.99.100:2376: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond..
See 'D:\Program Files\Docker Toolbox\docker.exe run --help'.
顺便说一下,我通过cisco anyconnect
打开了vpn。但是,当我断开vpn并运行hello world
时,它似乎只是冻结了
$ docker run hello-world
Unable to find image 'hello-world:latest' locally
latest: Pulling from library/hello-world
c04b14da8d14: Pulling fs layer
发生什么事了?你能找到docker或vpn的错误吗?
答案 0 :(得分:0)
您应该首先创建一个默认计算机:
docker-machine create default
然后获取新VM的环境命令:
docker-machine env
然后将您的外壳连接到新计算机:
eval "$(docker-machine env default)"
然后,docker运行hello-world有望正常运行。我在Windows 10Pro上使用Docker-Toolbox进行了测试