Docker无法从客户端运行hello-world

我正在尝试第一次安装Docker。 所以,我在这里遵循指南: https : //docs.docker.com/machine/get-started/

现在,当我看到以下命令:

docker run busybox echo hello world 

我得到以下错误:

 $ docker run hello-world C:\Program Files\Docker Toolbox\docker.exe: An error occurred trying to connect: Post https://192.168.99.101:2376/v1.23/containers/create: Service Unavailable. See 'C:\Program Files\Docker Toolbox\docker.exe run --help'. 

现在,我在一个公司代理人的背后,这可能是我的问题的原因。 我根据本文提到的内容进行设置: http : //mflo.io/2015/08/13/docker-machine-behind-proxy/ 。 我做了:

 docker-machine ssh default # now the command prompt will say something like: # docker@default:~$ # we need root access: sudo -s # now the command prompt will say something like: # root@default:~$ # now configure the proxy echo "export HTTP_PROXY=http://[uid]:[pw]@corporate.proxy.com:[port]" >> /var/lib/boot2docker/profile echo "export HTTPS_PROXY=http://[uid]:[pw]@corporate.proxy.com:[port]" >> /var/lib/boot2docker/profile # for verification cat /var/lib/boot2docker/profile # exit out of ssh session exit exit # restart docker-machine restart default # now you should be able to proceed with installation steps docker run hello-world 

在Docker-Machine上,我完全没有"docker run hello-world"以及"docker run busybox echo hello world"

但是,在我的电脑上,这个相同的命令总是返回相同的错误…

我不得不把docker机器的地址放在我的环境variables的no_proxy里面。

像这样( https://msdn.microsoft.com/en-us/library/hh272656%28v=vs.120%29.aspx?f=255&MSPPError=-2147217396 ):

no_proxy – 确定应该绕过代理的主机。 例如,NO_PROXY =“localhost,.mycompany.com,192.168.0.10:80”

尝试:

 docker-machine stop default docker-machine start default 

然后运行你的应用程序有时重启不会更新networkingconfiguration。