[求助]armbian 安装 docker 速度过慢

303 天前
 Lunrry

玩客云主机:Linux arm 5.9.0-rc7-aml-s812 #20.11 SMP Thu Jun 30 22:41:02 CST 2022 armv7l GNU/Linux Armbian 20.11 Buster 使用下面这个命令安装 docker 很慢,就十几 kB/s curl -fsSL https://get.docker.com -o get-docker.sh sh get-docker.sh --mirror Aliyun 请教各位应该如何解决

1004 次点击
所在节点    Linux
11 条回复
dayeye2006199
302 天前
找个镜像,你在国内的话这个太慢
MeteorVIP
302 天前
原来是玩客云呀,我原来也是刷 armbian ,现在刷 openwrt 当旁路由
Lunrry
302 天前
@dayeye2006199 #1 已经解决了,用了清华的镜像,速度正常了
export DOWNLOAD_URL="https://opentuna.cn/docker-ce"
curl -fsSL https://get.docker.com/ | sh
Lunrry
302 天前
@MeteorVIP #2 我想请教下,我的光猫 ip 是 192.168.1.1 ,主路由 ip192.168.6.1,我使用 docker 在玩客云安装的 openwrt (镜像 dreamwsbg/openwrt:7.0 )网络应该如何设置:
config interface ‘lan’
option proto ‘static’
option ipaddr ‘192.168.0.5’( opwrt 地址)
option netmask ‘255.255.255.0’(子网掩码)
option ip6assign ’60’
option gateway ‘192.168.0.1’(网关)
option broadcast ‘192.168.0.255’
option dns ‘192.168.0.111’(dns)
MeteorVIP
302 天前
@Lunrry #4 网关和 dns 都是主路由 ip192.168.6.1,其他不变
armbian 里装 docker 里装 openwrt 这样会不会爆炸喔?
Lunrry
302 天前
@MeteorVIP #5 我昨晚试了试好像是炸了,进不去 openwrt ,停止 openwrt 容器,玩客云重启,IP 改变
MeteorVIP
302 天前
@Lunrry #6 所以要用 openwrt 就直刷 openwrt 好啦。不敢是什么系统,重启之后 mac 会变,所以 IP 会变。
Lunrry
302 天前
@MeteorVIP #7 那就放弃使用 docker 安装 openwrt 了,主路由已经可以爬墙了,玩客云就用 docker 挂点服务
ysc3839
302 天前
印象中 Docker 里面跑 OpenWrt 这种需要运行 init system 以及会改 iptables 的系统会遇到奇怪的问题,比如 init system 可能遇到一些权限问题跑不起来,一般是建议用 lxc 或 lxd 。
但就算用了 lxd ,我自己实测网络分流方面似乎有 bug ,总之同样的配置,lxd 里面跑的 OpenWrt 有问题,换成直接装 OpenWrt 就没问题。
Lunrry
302 天前
@ysc3839 #9 是的 我已经放弃了
wdssmq
301 天前
我用的 linux mint ,手动添加 ubuntu 的源 404 ,用一键脚本发现是走的 deban /吐血

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/959064

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX