阿里云上装了 docker 以后如何使用阿里内网镜像源

2016-12-20 18:54:48 +08:00
 panda1001

阿里云内网镜像解析地址

mirrors.aliyuncs.com.	600	IN	A	10.143.34.200

安装了 docker 以后, 10.0.0.0 网段就分给 docker 了

主机的 eth0 地址是 172.17.143.*

阿里云主机的系统路由:

Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         172.17.143.253  0.0.0.0         UG    0      0        0 eth0
10.0.0.0        0.0.0.0         255.255.0.0     U     0      0        0 docker0
169.254.0.0     0.0.0.0         255.255.0.0     U     1002   0        0 eth0
172.17.128.0    0.0.0.0         255.255.240.0   U     0      0        0 eth0

docker 容器的系统路由

Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         10.0.42.1       0.0.0.0         UG    0      0        0 eth0
10.0.0.0        0.0.0.0         255.255.0.0     U     0      0        0 eth0

现在主机和 docker 容器都不能 ping 通 mirrors.aliyuncs.com

4465 次点击
所在节点    Docker
1 条回复
Libby520
2017-03-16 12:29:09 +08:00
内网可以共享镜像吗?

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/328961

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX