有人在 deepin 安装 docker 吗?
Tofloor
poster avatar
chenat
deepin
2017-05-23 23:19
Author
本帖最后由 chenat 于 2017-5-23 16:07 编辑

安装完成后弄了个 ubuntu 镜像,无论是官方的还是网易蜂巢的,都无法 apt-get update。
我试了一下 ping,可以 ping 通,但是不能 curl 以及 wget 。

看了下 iptables ,也没有拦截。

然后我下了个 ubuntu kylin 系统以及 win10 安装 docker 的 ubuntu 镜像,也没有出现上述现象。

google 了以及百度了下,都说是 dns 问题,我觉得不能够吧,能 ping 通域名的,而且我改了 dns 后还是不行。

有大神能帮忙分析下愿意吗,谢谢。
Reply Favorite View the author
All Replies
1 / 3
To page
avatar
jingle
deepin
2017-05-23 23:37
#1
Reply View the author
avatar
chenat
deepin
2017-05-23 23:43
#2
https://bbs.deepin.org/post/139894
https://bbs.deepin.org/post/139514#docker

我会安装,只是安装后出现了奇怪的问题。

现在最骚的是我装的几个系统都没出问题,我的主力系统 deepin 却出了点问题啊。
Reply View the author
avatar
jingle
deepin
2017-05-23 23:45
#3
https://bbs.deepin.org/post/139894
我会安装,只是安装后出现了奇怪的问题。

现在最骚的是我装的几个系统都没出问题,我的主力系统 deepin  ...

apt-get update 提示什么?
Reply View the author
avatar
chenat
deepin
2017-05-23 23:56
#4
https://bbs.deepin.org/post/139894
apt-get update 提示什么?

。。。。。。
Reply View the author
avatar
jingle
deepin
2017-05-24 00:00
#5

cat /etc/apt/sources.list 看看
Reply View the author
avatar
jingle
deepin
2017-05-24 00:00
#6
Reply View the author
avatar
chenat
deepin
2017-05-24 00:03
#7

。。。。。。。。。。
Reply View the author
avatar
chenat
deepin
2017-05-24 00:04
#8
本帖最后由 chenat 于 2017-5-23 16:05 编辑

跟这没啥关系吧,毕竟我 curl 任何网站都失败了。但 ping 能 ping 通。
这个是 iptables 的


Reply View the author
avatar
134******40
deepin
2017-05-24 00:09
#9
使用docker最好还是使用国内的加速器。官方的地址国内速度太慢。
在阿里云申请一个账号
打开连接 https://cr.console.aliyun.com/#/accelerator 拷贝您的专属加速器地址,然后/etc/systemd/system/multi-user.target.wants/docker.service 文件,找到 ExecStart= 这一行,在这行最后添加加速器地址 --registry-mirror=<加速器地址>
如:

ExecStart=/usr/bin/dockerd --registry-mirror=https://jxus37ad.mirror.aliyuncs.com

重新加载配置并且重新启动

$ sudo systemctl daemon-reload
$ sudo systemctl restart docker

其实,你如果注册了阿里云账户,而且点开了那个加速器,你会发现里面有使用说明。
Reply View the author
avatar
chenat
deepin
2017-05-24 00:12
#10
https://bbs.deepin.org/post/139894
使用docker最好还是使用国内的加速器。官方的地址国内速度太慢。
在阿里云申请一个账号
打开连接 https://c ...
好的谢谢。
不过老铁,我这问题,怕是跟速度无关吧?
Reply View the author
avatar
xizero
deepin
2017-05-24 00:16
#11
USTC 的不用注册

https://lug.ustc.edu.cn/wiki/mirrors/help/docker

Reply View the author
avatar
jingle
deepin
2017-05-24 00:21
#12

网络问题 与源无关
Reply View the author
avatar
chenat
deepin
2017-05-24 00:39
#13
https://bbs.deepin.org/post/139894
网络问题 与源无关

没解决方案吗,说是网络问题怕是不太合适啊。

可以 ping 通啊。
Reply View the author
avatar
134******40
deepin
2017-05-24 00:40
#14
https://bbs.deepin.org/post/139894
跟这没啥关系吧,毕竟我 curl 任何网站都失败了。但 ping 能 ping 通。
这个是 iptables 的

建议你还是使用深度的源为好,深度的源速度也不慢。当然不知道尝试将wheezy换成unstable或者jessie试试,看是否可以。
Reply View the author
avatar
134******40
deepin
2017-05-24 00:42
#15
https://bbs.deepin.org/post/139894
没解决方案吗,说是网络问题怕是不太合适啊。

可以 ping 通啊。

ping通并不代表80或者443端口可以用,ping是另外一个端口。
如果curl或者wget命令已经安装过了,但是无法连接网站的话,那肯定是网络问题了。
Reply View the author
avatar
chenat
deepin
2017-05-24 00:52
#16
https://bbs.deepin.org/post/139894
建议你还是使用深度的源为好,深度的源速度也不慢。当然不知道尝试将wheezy换成unstable或者jessie试试, ...

昨天就是用的深度的源,然后不行。今天才用的官方的源。

可以ping 通百度起码说明我网络没问题吧? 我一直觉得是不是防火墙的问题,但是看了下 iptables 也没发现有什么不对,再者同一个源我在 ubuntu kylin 上安装就没事,不合适啊。
Reply View the author
avatar
134******40
deepin
2017-05-24 01:14
#17
https://bbs.deepin.org/post/139894
昨天就是用的深度的源,然后不行。今天才用的官方的源。

可以ping 通百度起码说明我网络没问题吧? 我一 ...

最好你用谷歌浏览器看能不能打开网页。ping ip能够ping通说明网络是通的。如果是用 ping www.baidu.com 能够ping通,又说明域名解析是通的,那么只有防火墙设置的问题了。
Reply View the author
avatar
chenat
deepin
2017-05-24 01:19
#18
https://bbs.deepin.org/post/139894
最好你用谷歌浏览器看能不能打开网页。ping ip能够ping通说明网络是通的。如果是用 ping www.baidu.com  ...

蛤? 我是 docker 里面的容器不能 apt-get update 啊,哪来的谷歌。宿主机器肯定是能上网的啊。
Reply View the author
avatar
134******40
deepin
2017-05-24 01:25
#19
https://bbs.deepin.org/post/139894
蛤? 我是 docker 里面的容器不能 apt-get update 啊,哪来的谷歌。宿主机器肯定是能上网的啊。 ...

你说的是docker里面运行的Ubuntu容器是吧,我还以为是你的deepin系统无法更新了呢。理解失误。这个如果是Ubuntu容器,你最好不要使用debian的源,而是使用Ubuntu的源。
看看这个能不能解决你的问题。
http://blog.csdn.net/yangzhenping/article/details/43567155
当然,也有可能你已经看过了。
Reply View the author
avatar
chenat
deepin
2017-05-24 01:37
#20
https://bbs.deepin.org/post/139894
你说的是docker里面运行的Ubuntu容器是吧,我还以为是你的deepin系统无法更新了呢。理解失误。这个如果是U ...

是啊看过了,百度的搜索尿性,一搜索类似问题就变着字体内容不变回答你。

google 的也搜过了,没啥解决方案,或者说根本没这种问题。

所以想来这里看看有没同性玩家也遇到这个问题,或者都没有问题。

我现在试过三个源了,deepin 的,ubuntu 的,debian Wheezy 的,都没用唉,现在在下载 Jessie 的
Reply View the author
1 / 3
To page