Coder Social home page Coder Social logo

wukongdaily / orangepishell Goto Github PK

View Code? Open in Web Editor NEW
737.0 5.0 238.0 111 KB

在Linux上快速部署一些好用的docker项目。起初只是为了香橙派制作。推荐使用1panel面板轻松管理docker。

Home Page: https://wkdaily.cpolar.cn

License: GNU General Public License v3.0

Shell 100.00%

orangepishell's Issues

第二块开发板安装Docker后,网络路由表里docker0始终显示linkdown

  • 背景:
    第一次根据大佬的视频,照搬照用,用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通

至此,以我的能力无法继续定位和诊断问题点了,麻烦大佬有空的时候点拨一二。
感谢。

istoreOS 安装iPanle出错 Failed to get Docker root directory.

————————————————————————————————————————————————————

***********  DIY docker轻服务器  ***************
环境:OpenWrt/iStoreOS
脚本作用:快速部署一个省电无感的小透明轻服务器
        --- Made by wukong with YOU ---
https://github.com/wukongdaily/OrangePiShell

————————————————————————————————————————————————————

  1. 安装小雅tvbox
  2. 安装盒子助手docker版
  3. 安装AList docker版
  4. 安装1panel(iStoreOS版)
  5. 安装特斯拉伴侣TeslaMate
  6. 安装docker-compose
  7. 安装小雅全家桶Emby|Jellyfin
  8. 安装1panel面板通用版
    U. 更新脚本

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:

脚本的docker源是不是有问题

我发现 使用脚本 第五个功能 安装 小雅tvbox的时候 会出现一直无法下载docker镜像的问题 一直提示链接超时 无法从docker hub 下载镜像

xiaoya容器日志中报错,docker.xiaoya.pro服务不可用

我使用的是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

请帮忙看一下问题出在哪里?感谢!!

Error 22 when install FileBrowser

————————————————————————————————————————————————————

***********  DIY docker轻服务器  ***************
环境: (Ubuntu/Debian/synology etc)
脚本作用:快速部署一个省电无感的小透明轻服务器
        --- Made by wukong with YOU ---
https://github.com/wukongdaily/OrangePiShell

————————————————————————————————————————————————————
请选择操作:

  1. 更新系统软件包
  2. 安装docker
  3. 安装并启动文件管理器FileBrowser
  4. 设置文件管理器开机自启动

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.

国外使用小雅的办法

你好悟空,我已经成功的部署了全家桶(网上的教程以及你的教程),但是访问速度真的太慢了,且大多视频都打不开。请问如何在国外有效地使用小雅全家桶呢?只能翻墙回国吗?

求ai相关的文件管理工具分享

有没有工具/docker能自动整理文档资料。
比如,我只需将文件无脑丢进一个入口,然后工具会自动分门别类,甚至可以提取关键信息并进行关联,将文件转化为智能知识库。
谢谢!

我这次重装发现, pi.sh 貌似有问题,

重装小雅tvbox, 发现貌似不能成功。尽管下载你Googledriver里面的镜像, 用1 panel 上传到 orangepi, /mnt. 也不行。
然后试一试重装小雅alist, 同样的问题。请看看???
for wukong

,

你好,openssl连接这个连接有问题

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.