I had similar issue on Ubuntu 16.04 and manage to solve it by adding more nameservers
You can try too.
Open config file sudo nano sudo nano /etc/resolv.conf and add the following under existing nameservers
nameserver 8.8.8.8
nameserver 8.8.4.4
run following commands to restart daemon and docker service
sudo systemctl daemon-reload
sudo systemctl restart docker
Now try to pull image you want docker pull sonarqube
Share
Improve this answer
Follow

在Ubuntu 16.04上遇到Docker无法拉取镜像的问题,可以通过增加nameserver来解决。编辑/etc/resolv.conf文件,添加8.8.8.8和8.8.4.4两个nameserver,然后重启daemon和docker服务。执行sudo systemctl daemon-reload和sudo systemctl restart docker,之后尝试再次拉取镜像。
3295

被折叠的 条评论
为什么被折叠?



