wukongdaily / orangepishell Goto Github PK
View Code? Open in Web Editor NEW在Linux上快速部署一些好用的docker项目。起初只是为了香橙派制作。推荐使用1panel面板轻松管理docker。
Home Page: https://wkdaily.cpolar.cn
License: GNU General Public License v3.0
在Linux上快速部署一些好用的docker项目。起初只是为了香橙派制作。推荐使用1panel面板轻松管理docker。
Home Page: https://wkdaily.cpolar.cn
License: GNU General Public License v3.0
背景:
第一次根据大佬的视频,照搬照用,用zero 3搭建了轻量化服务器之后,逐渐又用docker部署了一些其他服务,但是zero3的CPU性能和内存的局限较大,于是最近又淘了一块4+16的orange pi 4,打算再打造一个,根据用途和负载区分一下容器和搭载的主机
因为orangepi 4的官方镜像版本很老,于是在Armbian上获取了本型号设备基于Linux v6.6的镜像进行安装,然后套用了本项目的脚本
环境:
zero3(后简称PZ3)、4(后简称P4)、还有一台PC都接在同一台主路由的LAN口,路由WAN口接光猫。
这三台设备都在路由器中绑定了固定的IP地址,PC通过IP地址访问PZ3和P4。
现象:
前期一直都很顺利,直到P4安装docker完毕,部署容器之后发现无法通过配置中映射的端口访问到容器。
由于操作都是通过远程SSH完成,包括脚本安装的1Panel和CasaOS也都可以正常通过内网IP+地址访问,CasaOS在路由做了端口转发后也可以从外网访问到,因此判断P4本身的网络设置没有问题。
而P4通过CasaOS安装的应用也显示没有问题,状态显示已启动,占用内存也正常,只是无法跳转访问,因此个人怀疑可能是docker的虚拟网络存在问题
尝试过的分析和操作:
从PZ3和P4上都执行了对自身和对对方的tenlnet,目标分别是其他服务使用的端口和docker容器映射的端口;
PZ3 telnet自身IP常规服务端口(更改了CasaOS默认的80端口)正常,telnet自身docker容器映射出来的端口正常,telnet P4的IP地址+CasaOS端口正常,telnet P4的IP地址+容器映射端口显示telnet: Unable to connect to remote host: No route to host
P4 telnet自身IP常规服务端口正常,telnet自身docker容器映射出来的端口显示telnet: Unable to connect to remote host: No route to host
,telnet PZ3的IP地址+CasaOS端口正常,telnet PZ3的IP地址+容器映射端口正常
根据提示的报错查询路由表,在P4上执行ip route show
得到以下结果
default via 192.168.2.1 dev end0 proto dhcp src 192.168.2.203 metric 100
172.17.0.0/16 dev docker0 proto kernel scope link src 172.17.0.1 linkdown
172.18.0.0/16 dev br-2b5366d82046 proto kernel scope link src 172.18.0.1 linkdown
192.168.2.0/24 dev end0 proto kernel scope link src 192.168.2.203 metric 100
192.168.2.1 dev end0 proto dhcp scope link src 192.168.2.203 metric 100
和docker相关的两条172开头的都显示了linkdown,尝试了一下ifconfig docker0 up
,如预期般没有效果。
在PZ3上执行该命令,相关的两条信息是没有linkdown的。推测有可能是这里造成的问题。
查阅了一些资料后怀疑可能是PZ3和P4的docker在安装时都使用了默认的IP段172.17.x.x,造成了冲突,于是尝试修改P4的/etc/docker/deamon.json
,添加了参数 "bip": "182.26.0.0/16" 并重启docker服务,观察到IP段确实改变了,但是linkdown的状态没有变,只是改为显示了
182.26.0.0/16 dev docker0 proto kernel scope link src 182.26.0.1 linkdown
容器仍然无法访问,执行
ifconfig docker0
的结果,网卡状态是UP的:
docker0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
182.26.0.1的IP地址也可以从本机ping通
至此,以我的能力无法继续定位和诊断问题点了,麻烦大佬有空的时候点拨一二。
感谢。
————————————————————————————————————————————————————
*********** DIY docker轻服务器 ***************
环境:OpenWrt/iStoreOS
脚本作用:快速部署一个省电无感的小透明轻服务器
--- Made by wukong with YOU ---
https://github.com/wukongdaily/OrangePiShell
————————————————————————————————————————————————————
Q. 退出本程序
请选择一个选项: 4
[INFO] 请务必确保您使用的是iStoreOS系统 回车或输入y来确定
[NOTICE] 并且停止正在运行的istorepanel容器(y|n)
y
[INFO] 先确保安装了iStore增强
Try mirror server https://repo.istoreos.com/repo
Package app-meta-istoreenhance (0.1.3-2) installed in root is up to date.
[INFO] 正在安装1panel的iStoreOS版本...
Removing package app-meta-istorepanel from root...
luci-i18n-istorepanel-zh-cn was autoinstalled and is now orphaned, removing.
Removing package luci-i18n-istorepanel-zh-cn from root...
luci-app-istorepanel was autoinstalled and is now orphaned, removing.
Removing package luci-app-istorepanel from root...
Not deleting modified conffile /etc/config/istorepanel.
zoneinfo-asia was autoinstalled and is now orphaned, removing.
Removing package zoneinfo-asia from root...
Collected errors:
file_sha256sum_alloc: Failed to open file /etc/config/istorepanel: No such file or directory.
Try mirror server https://repo.istoreos.com/repo
Installing app-meta-istorepanel (1.0.2-20240628) to root...
Downloading https://repo.istoreos.com/repo/all/meta/app-meta-istorepanel_1.0.2-20240628_all.ipk
Collected errors:
opkg_download: Failed to download https://repo.istoreos.com/repo/all/meta/app-meta-istorepanel_1.0.2-20240628_all.ipk, wget returned 4.
opkg_download: Check your network settings and connectivity.
opkg_install_pkg: Failed to download app-meta-istorepanel. Perhaps you need to run 'opkg update'?
opkg_install_cmd: Cannot install package app-meta-istorepanel.
Try origin server https://istore.linkease.com/repo
Installing app-meta-istorepanel (1.0.2-20240628) to root...
Downloading https://istore.linkease.com/repo/all/meta/app-meta-istorepanel_1.0.2-20240628_all.ipk
Installing zoneinfo-asia (2023c-1) to root...
Downloading http://mirrors.pku.edu.cn/immortalwrt/releases/21.02.1/packages/aarch64_cortex-a53/packages/zoneinfo-asia_2023c-1_aarch64_cortex-a53.ipk
Installing luci-app-istorepanel (1.0.2-20231208) to root...
Downloading https://istore.linkease.com/repo/all/nas_luci/luci-app-istorepanel_1.0.2-20231208_all.ipk
Installing luci-i18n-istorepanel-zh-cn (unknown) to root...
Downloading https://istore.linkease.com/repo/all/nas_luci/luci-i18n-istorepanel-zh-cn_unknown_all.ipk
Configuring zoneinfo-asia.
Configuring luci-app-istorepanel.
Configuring luci-i18n-istorepanel-zh-cn.
Configuring app-meta-istorepanel.
[INFO] 正在安装istore版1panel...
Failed to get Docker root directory.
我发现 使用脚本 第五个功能 安装 小雅tvbox的时候 会出现一直无法下载docker镜像的问题 一直提示链接超时 无法从docker hub 下载镜像
如题
我使用的是orangepi zero 3 1G版本
在第6步时,xiaoya容器中日志显示如下:
启动容器(Bridge模式)......
INFO[2024-04-30 13:22:16] reading config file: data/config.json
INFO[2024-04-30 13:22:16] load config from env with prefix:
INFO[2024-04-30 13:22:16] init logrus...
INFO[2024-04-30 13:22:16] start server @ 127.0.0.1:5244
INFO[2024-04-30 13:22:16] success load storage: [/©️ v.0428.1515(B)], driver: [UrlTree]
Connecting to docker.xiaoya.pro (172.67.178.229:80)
wget: server returned error: HTTP/1.1 503 Service Unavailable
Failed to download version.txt file, the index file upgrade process has aborted
Connecting to docker.xiaoya.pro (172.67.178.229:80)
Connecting to gitlab.com (172.65.251.78:443)
saving to 'tvbox.zip'
tvbox.zip 7% |** | 108k 0:00:11 ETA
tvbox.zip 39% |************ | 556k 0:00:03 ETA
tvbox.zip 100% |********************************| 1397k 0:00:00 ETA
'tvbox.zip' saved
Failed to download version.txt file, the index file upgrade process has aborted
httpd: bind: Address in use
请帮忙看一下问题出在哪里?感谢!!
————————————————————————————————————————————————————
*********** DIY docker轻服务器 ***************
环境: (Ubuntu/Debian/synology etc)
脚本作用:快速部署一个省电无感的小透明轻服务器
--- Made by wukong with YOU ---
https://github.com/wukongdaily/OrangePiShell
————————————————————————————————————————————————————
请选择操作:
Hi Wukong, I received the following message when using option 3:
请输入选项的序号(输入q退出): 3
[INFO] Downloading File Browser for linux/armv7...
https://cafe.cpolar.cn/wkdaily/filebrowser/raw/branch/main/linux-armv7-filebrowser.tar.gz
curl: (22) The requested URL returned error: 404
Aborted, error 22 in command: ${net_getter} "$filemanager_url" > "$PREFIX/tmp/$filemanager_file"
按任意键继续...
Please kindly assist.
这个版本,是最新官方版么,稳定性如何,能谈下么?官方好似没出docker版本
你好悟空,我已经成功的部署了全家桶(网上的教程以及你的教程),但是访问速度真的太慢了,且大多视频都打不开。请问如何在国外有效地使用小雅全家桶呢?只能翻墙回国吗?
有没有工具/docker能自动整理文档资料。
比如,我只需将文件无脑丢进一个入口,然后工具会自动分门别类,甚至可以提取关键信息并进行关联,将文件转化为智能知识库。
谢谢!
当我在web端看了个视频观看了一会儿之后,返回,在进入该视频,就无法在线直接播放该视频了。
@wukongdaily 这个有解决方案不?
拼接的下载地址不对,没有中间的版本号,导致下载403
https://github.com/filebrowser/filebrowser/releases/download//linux-arm64-filebrowser.tar.gz
cafe.cpolar.cn 404打不开了,什么情况
因为该仓库遗失导致 filebrowser 自启动执行失败,连带小雅alist也安装失败
https://cafe.cpolar.cn/wkdaily/zero3
悟空你好,我用你的脚本,阿里源好像拉取不到 docker,求更新,1panel面板不能安装。
orangepi@orangepizero3:~$ wget -O pi.sh https://mirror.ghproxy.com/https://raw.githubusercontent.com/wukongdaily/OrangePiShell/master/zero3/pi.sh && chmod +x pi.sh ./pi.sh proxyent.com/wukongdaily/OrangePiShell/master/zero3/pi.sh && chmod +x pi --2024-04-27 11:31:38-- https://mirror.ghproxy.com/https://raw.githubusercontent.com/wukongdaily/OrangePiShell/master/zero3/pi.sh
Resolving mirror.ghproxy.com (mirror.ghproxy.com)... 132.145.248.22
Connecting to mirror.ghproxy.com (mirror.ghproxy.com)|132.145.248.22|:443... connected.
OpenSSL: error:0A00010B:SSL routines::wrong version number
Unable to establish SSL connection.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.