docker “FATA[0162] ... connection timed out" 错误改正方法
2015-06-12 09:31
736 查看
在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的贴子,添加代理的方法如下:
1)修改/etc/default/docker文件,把其中“export http_proxy” 那段注释打开,然后把IP地址改成代理服务器地址,
# If you need Docker to use an HTTP proxy, it can also be specified here.
export http_proxy="http://192.168.1.1:8888/"
2)重启docker服务,
service docker restart
附注:stackoverflow原帖链接http://stackoverflow.com/questions/23111631/cannot-download-docker-images-behind-a-proxy
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的贴子,添加代理的方法如下:
1)修改/etc/default/docker文件,把其中“export http_proxy” 那段注释打开,然后把IP地址改成代理服务器地址,
# If you need Docker to use an HTTP proxy, it can also be specified here.
export http_proxy="http://192.168.1.1:8888/"
2)重启docker服务,
service docker restart
附注:stackoverflow原帖链接http://stackoverflow.com/questions/23111631/cannot-download-docker-images-behind-a-proxy
相关文章推荐
- zabbix企业应用之监控docker容器资源情况
- 基于Mesos和Docker的分布式计算平台
- 基础的 Docker 容器网络命令
- 基础的 Docker 容器网络命令
- docker运行报错Get http:///var/run/docker.sock/v1.18/containers/json?all=1:
- 初识docker(一)
- mac 下docker得端口转发
- 创建尽可能小的 Docker 容器
- 使用Docker做开发的建议团队工作流
- docker高级应用之cpu与内存资源限制
- Docker中的一些命令
- 学习docker(二)
- Ubuntu14.04(32位)下安装使用docker
- docker实战之centos6.5上安装、镜像、容器相关操作
- Docker部署IPython
- 灵活控制Docker容器中启动的进程
- 构建自己的私人docker registry
- 如何在 Windows 操作系统中运行 Docker 客户端
- 20个令人惊叹的桌面Docker容器
- CoreOS环境下通过register镜像搭建私有仓库