Docker笔记

原创
2019/05/13 15:06
阅读数 1.3K

官方安装教程(centos) https://docs.docker.com/install/linux/docker-ce/centos/

macos 下运行 hello world出错:

$ docker run hello-world
Unable to find image 'hello-world:latest' locally
docker: Error response from daemon: Get https://registry-1.docker.io/v2/library/hello-world/manifests/latest: Service Unavailable.
See 'docker run --help'.

解决方式: 修改Daemon 的 dns设定

IIRC there were some cases where DNS resolution failed on Docker for Mac, depending on the DNS server that was configured on the host;

Can you try if it works if you set 8.8.8.8 as DNS server in the daemon configuration? You can set this by providing a JSON configuration in the preference panel (under daemon -> advanced), e.g;

{ "dns" : [ "8.8.8.8", "8.8.4.4" ]}

via https://github.com/moby/moby/issues/32270

展开阅读全文
加载中
点击引领话题📣 发布并加入讨论🔥
0 评论
1 收藏
0
分享
返回顶部
顶部