码头集装箱上没有上网 [英] No internet access on docker container
本文介绍了码头集装箱上没有上网的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Err:1 http://archive.ubuntu.com/ubuntu xenial InRelease
临时失败解决'存档。 ubuntu.com'
Err:2 http://archive.ubuntu.com/ubuntu xenial-updates InRelease
临时失败解决'archive.ubuntu.com'
错误:3 http:/ /archive.ubuntu.com/ubuntu xenial-security InRelease
临时失败解决'archive.ubuntu.com'
阅读软件包列表...完成
构建依赖关系树
读取状态信息...完成
所有包都是最新的。
W:无法提取http://archive.ubuntu.com/ubuntu/dists/xenial/InRelease临时失败解决'archive.ubuntu.com'
W:无法获取http://存档.ubuntu.com / ubuntu / dists / xenial-updates / InRelease临时失败解决'archive.ubuntu.com'
W:无法提取http://archive.ubuntu.com/ubuntu/dists/xenial-security / InRelease临时失败解析'archive.ubuntu.com'
W:某些索引文件无法下载。他们被忽视了,或者旧的被使用了。
我已经尝试启用/ etc / default / docker中的DOCKER_OPTS使用Google的DNS并重新启动Docker ,但它没有奏效。
我也尝试过:
pkill docker
iptables -t nat -F
ifconfig docker0 down
brctl delbr docker0
docker -d
我如何解决这个问题?
解决方案
已经解决了。我要做的是注释掉
dns = dnsmasq
$位于
/etc/NetworkManager/NetworkManager.conf
中的p $ p>
条目。
I've just installed docker on a virtual machine and created a ubuntu container. When I run "apt update" I get the following errors.
Err:1 http://archive.ubuntu.com/ubuntu xenial InRelease Temporary failure resolving 'archive.ubuntu.com' Err:2 http://archive.ubuntu.com/ubuntu xenial-updates InRelease Temporary failure resolving 'archive.ubuntu.com' Err:3 http://archive.ubuntu.com/ubuntu xenial-security InRelease Temporary failure resolving 'archive.ubuntu.com' Reading package lists... Done Building dependency tree Reading state information... Done All packages are up to date. W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/xenial/InRelease Temporary failure resolving 'archive.ubuntu.com' W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/xenial-updates/InRelease Temporary failure resolving 'archive.ubuntu.com' W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/xenial-security/InRelease Temporary failure resolving 'archive.ubuntu.com' W: Some index files failed to download. They have been ignored, or old ones used instead.
I already tried to enable the DOCKER_OPTS in /etc/default/docker to use Google's DNS and restarted docker, but it didn't work.
I also tried this:
pkill docker iptables -t nat -F ifconfig docker0 down brctl delbr docker0 docker -d
How can I solve this problem?
解决方案Already solved it. What I had to do was comment out the
dns=dnsmasq
entry located in
/etc/NetworkManager/NetworkManager.conf
.这篇关于码头集装箱上没有上网的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文