找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 4540|回复: 24

[N1盒子] 刷F大的armbian,无法安装docker应用,请各位大神出手。

[复制链接]
发表于 2020-6-2 21:02 | 显示全部楼层 |阅读模式
拼夕夕上的黑色N1盒子,刷了F大最新的armbian buster的固件,根据教程开始一切顺利,安装了docker 和openwrt,设置了openwrt坐成了旁路由,修改了软件源,使用了阿里云镜像加速器,昨天想装上portainer,OMV这些docker应用,却死活报错,没法装上。用armbian-config命令也无法安装里面的软件,用apt-get update命令,好像所有的软件源都无法连接,不知道哪里出问题。请各位大神帮忙指点。目前设置情况如下:/etc/apt/souces.list 软件源:
deb [arch=arm64,armhf] http://mirrors.tuna.tsinghua.edu.cn/debian buster main contrib non-free
deb [arch=arm64,armhf] http://mirrors.tuna.tsinghua.edu.cn/debian buster-updates main contrib non-free
deb [arch=arm64,armhf] http://mirrors.tuna.tsinghua.edu.cn/debian buster-backports main contrib non-free
deb [arch=arm64,armhf] http://mirrors.tuna.tsinghua.edu.cn/debian-security/ buster/updates main contrib non-free
deb [arch=armhf,arm64] https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/debian buster stable
deb http://mirrors.ustc.edu.cn/debian stretch main contrib non-free
deb http://mirrors.ustc.edu.cn/debian stretch-updates main contrib non-free
deb http://mirrors.ustc.edu.cn/debian stretch-backports main contrib non-free
deb http://mirrors.ustc.edu.cn/debian-security/ stretch/updates main contrib non-free
deb http://mirrors.huaweicloud.com/debian buster main contrib non-free
# deb-src [arch=armhf,arm64] https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/debian buster stable
# deb-src [arch=arm64,armhf] https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/debian buster stable


/etc/docker/daemon.json:设置为:
{
"registry-mirrors": ["https://registry.docker-cn.com"]
}


其中镜像换过阿里云,中科大的地址,都没有用。

运行apt-get update,显示信息:

Could not connect to mirrors.ustc.edu.cn:80 (202.141.176.110). - connect (113: No route to host) Cannot initiate the connection to mirrors.ustc.edu.cn:80 (2001:da8:d800:95::110). - connect (101: Network is unreachable) Could not connect to mirrors.ustc.edu.cn:80 (218.104.71.170). - connect (113: No route to host)
Ign:2 http://mirrors.ustc.edu.cn/debian stretch-updates InRelease
Ign:3 http://mirrors.ustc.edu.cn/debian stretch-backports InRelease
Ign:4 http://mirrors.ustc.edu.cn/debian-security stretch/updates InRelease
Err:5 http://mirrors.ustc.edu.cn/debian stretch-updates Release

Cannot initiate the connection to mirrors.ustc.edu.cn:80 (2001:da8:d800:95::110). - connect (101: Network is unreachable)
Err:6 http://mirrors.ustc.edu.cn/debian stretch-backports Release

等等。好像是连不上,其中过程显示中,好像试图连接阿里云站点 (我曾经用过curl命令以及tee命令在daemon.json添加阿里云镜像加速)。

我自己试图安装portainer,用了下面的语句:
docker volume create portainer_data
docker run -d -p 8000:8000 -p 9000:9000 --name=portainer --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer

返回信息显示为:
Unable to find image 'portainer/portainer:latest' locally
docker: Error response from daemon: Get https://registry-1.docker.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers).
See 'docker run --help'.

目前N1设置可以正常上网,主路由DHCP,网关和DNS为N1 openwrt lan地址:192.168.0.10,N1 opnewrt 网关设为主路由地址:192.168.0.1,DNS为114.114.1114.114,备用DNS为主路由地址。

自己小白一枚,第一次折腾,没法处理了,请各位大神指教该如何处理,主要想再装上samba,portainer做图形管理,再加个OMV做个轻量级NAS,这个N1也就物尽其用了。谢谢!



我的恩山、我的无线 The best wifi forum is right here.
发表于 2020-6-2 21:25 | 显示全部楼层
阿里的加速可以用,亲测,另外你不需要执行指令,只需要执行/etc/docker-web即可自动安装

点评

还是不行,见下回复。  详情 回复 发表于 2020-6-3 09:10
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2020-6-2 21:31 | 显示全部楼层
root@aml:~# /etc/docker-web
-bash: /etc/docker-web: No such file or directory
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2020-6-2 21:39 | 显示全部楼层
刷的是 Armbian buster with Linux 5.4.39-flippy-36+o
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2020-6-3 06:13 | 显示全部楼层
沉得太快,再次跪求解决方案。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2020-6-3 09:10 | 显示全部楼层
xjx03 发表于 2020-6-2 21:25
阿里的加速可以用,亲测,另外你不需要执行指令,只需要执行/etc/docker-web即可自动安装

还是不行,见下回复。

点评

是我搞错了,我以为是f大的openwrt,不过阿里的镜像确实没问题  详情 回复 发表于 2020-6-3 10:06
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-6-3 10:06 | 显示全部楼层
seanzeng 发表于 2020-6-3 09:10
还是不行,见下回复。

是我搞错了,我以为是f大的openwrt,不过阿里的镜像确实没问题

点评

谢谢关注了,继续寻求答案。  详情 回复 发表于 2020-6-3 17:03
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2020-6-3 17:03 | 显示全部楼层
xjx03 发表于 2020-6-3 10:06
是我搞错了,我以为是f大的openwrt,不过阿里的镜像确实没问题

谢谢关注了,继续寻求答案。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2020-6-3 21:50 | 显示全部楼层
root@aml:~# docker search portainer
Error response from daemon: Get https://index.docker.io/v1/search?q=portainer&n=25: dial tcp 54.81.26.184:443: connect: no route to host
镜像库似乎连不上。https://index.docker.io网站可以打开。哪里出问题了?
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2020-6-4 22:35 | 显示全部楼层
再请教一次吧。看来是小白问题。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2020-6-6 00:28 | 显示全部楼层
今天重新装了一遍固件。部分解决问题:

我是光猫拨号,主路由是二级路由,N1为旁路由。原先设置为主路由DNS和网关设为 N1旁路由的openwrt IP地址(为低调上网插件使用),上网均为正常,但是如前面所将无法连上docker的软件源,armbian-config也无法安装软件。

但是今天,把主路由DNS和网关设置为空,正常上网(未经过N1,不能低调上网),而且N1软件源就正常了,armbian-config也能正常安装软件。似乎问题出在openwrt 上,导致了软件源不能正常使用。

偶然看到网络有人说armbian 和 openwrt网络是不通的,要联通是要设置,不知道是不是这个原因导致软件源无法用?大神可以帮忙分析分析该如何做,不然安装软件时候就得换会主路由DNS和网关为空的模式
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-6-7 15:41 | 显示全部楼层
buster 内核为啥还留着 stretch 的源?看你报错也都是 stretch 的源,要么 Ign 忽略,要么 Err 报错。 你把 ustc 那些 stretch 的源删了,只保留 buster 的源试试。

点评

已经发现这个问题,已删除stretch的源。但是发现情形如11楼所述。  详情 回复 发表于 2020-6-7 18:57
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2020-6-7 18:57 | 显示全部楼层
zhuceluntan 发表于 2020-6-7 15:41
buster 内核为啥还留着 stretch 的源?看你报错也都是 stretch 的源,要么 Ign 忽略,要么 Err 报错。 你把 ...

已经发现这个问题,已删除stretch的源。但是发现情形如11楼所述。

点评

把扶梯插件关闭,同时依旧指定N1作为网关+DNS,看看软件源能否正常使用。  详情 回复 发表于 2020-6-7 22:22
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-6-7 22:22 | 显示全部楼层
seanzeng 发表于 2020-6-7 18:57
已经发现这个问题,已删除stretch的源。但是发现情形如11楼所述。

把扶梯插件关闭,同时依旧指定N1作为网关+DNS,看看软件源能否正常使用。

点评

测试过了,和扶梯没有关系。感觉要不是DNS的问题,要不就是openwrt设置macvlan什么之间的问题。不设置为旁路由模式,N1直接通过主路由,没有经过openwrt的 ip,设置为旁路由,所有数据都要经过openwrt的ip,似乎就是  详情 回复 发表于 2020-6-9 14:19
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2020-6-9 14:19 | 显示全部楼层
zhuceluntan 发表于 2020-6-7 22:22
把扶梯插件关闭,同时依旧指定N1作为网关+DNS,看看软件源能否正常使用。

测试过了,和扶梯没有关系。感觉要不是DNS的问题,要不就是openwrt设置macvlan什么之间的问题。不设置为旁路由模式,N1直接通过主路由,没有经过openwrt的 ip,设置为旁路由,所有数据都要经过openwrt的ip,似乎就是这个地方出问题了。

点评

再次确认这个问题,现在重新刷了OMV,dockers里面跑openwrt,openwrt设置旁路由模式,OMV里面的dockers 拉镜像都不行,不通。主路由DHCP网关不设为openwrt的IP,OMVdockers拉镜像安装都OK。看看问题出在哪里?  详情 回复 发表于 2020-6-10 10:36
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-4-25 02:08

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表