在ubuntu14.04下面安装docker后,运行sudo docker run hello-world,提示下面的错误,
Unable to find image 'hello-world:latest' locally
Pulling repository hello-world
FATA[0162] Get https://index.docker.io/v1/repositories/library/hello-world/images: dial tcp 162.242.195.84:443: connection timed out
连接远程的docker库出错,判断是在内网需要使用代理。参考stackoverflow的贴子,添加代理的方法如下: