标签:docker DNS
docker设置安装完docker后执行如下命令失败
解决方案:
这里看出index.docker.io的ip地址为54.224.119.89
然后修改/etc/hosts文件如下:
添加docker相关的dns
1 2 3 4 5 6 7 8 9 10 11 | 127.0 . 0.1 localhost 127.0 . 1.1 chengduubuntu 54.224 . 119.89 get.docker.io 54.224 . 119.89 cdn-registry- 1 .docker.io 54.224 . 119.89 index.docker.io # The following lines are desirable for IPv6 capable hosts :: 1 ip6-localhost ip6-loopback fe00:: 0 ip6-localnet ff00:: 0 ip6-mcastprefix ff02:: 1 ip6-allnodes ff02:: 2 ip6-allrouters |
标签:docker DNS
原文地址:http://blog.51cto.com/4951326/2097362