Git Product home page Git Product logo

Comments (10)

ayanami-desu avatar ayanami-desu commented on September 15, 2024

Entrypoint.sh原本只有一行
mieru start
我经过搜索之后,加上了一行
tail -f /dev/null
本来是想让容器不退出方便调试的,结果直接能用了。看来是启动命令的问题,请问有什么别的方法能解决吗?

from mieru.

enfein avatar enfein commented on September 15, 2024

首先我认为在容器里面运行客户端程序没有任何好处.

至于你的问题,你需要知道一点

如果容器的主进程退出了,容器的生命周期也就结束了.

假定 Entrypoint.sh 是容器的主进程,这里面的最后一个指令是 mieru start. mieru start 做的事情是在后台运行 mieru run 并退出.它退出之后容器的生命周期就结束了,那个刚刚创建的后台进程 mieru run 也会一起死掉,所以你在日志里面什么都看不到.想要修复这个问题,如果你在容器的 Entrypoint.sh 里面使用 mieru apply config ... 正确配置了客户端,只要把最后一个指令改成 mieru run 即可.

from mieru.

ayanami-desu avatar ayanami-desu commented on September 15, 2024

感谢解答,至于我为什么要用docker运行客户端,是因为我想要在软路由上运行mieru,通过passwall等软件转发socks到客户端

from mieru.

enfein avatar enfein commented on September 15, 2024

你用的软路由只能运行容器不能直接运行一个二进制程序么?

from mieru.

ayanami-desu avatar ayanami-desu commented on September 15, 2024

系统是openwrt,aarch64架构的,release中有这个架构的客户端,但我没有找到这个系统如何进行rpm安装。

from mieru.

enfein avatar enfein commented on September 15, 2024

客户端只有一个二进制文件,因此不一定需要 deb 或者 rpm 安装包。你可以下载

https://github.com/enfein/mieru/releases/download/v1.8.1/mieru_1.8.1_linux_arm64.tar.gz

然后解压缩即可。

from mieru.

ayanami-desu avatar ayanami-desu commented on September 15, 2024

aarch64架构的客户端并没有tar.gz压缩包
但我发现rpm也是可以解压的。能否考虑以后只release二进制文件呢

from mieru.

enfein avatar enfein commented on September 15, 2024

处理器的架构有不同的名字,Redhat 叫 x86_64aarch64,Debian 叫 amd64arm64。其实他们是一回事。那个 mieru_1.8.1_linux_arm64.tar.gz 应该可以在你的软路由里面运行。

from mieru.

ayanami-desu avatar ayanami-desu commented on September 15, 2024

确实可以运行
非常感谢!

from mieru.

github-actions avatar github-actions commented on September 15, 2024

This issue is stale because it has been open 80 days with no activity. Remove stale label or comment or this will be closed in 9 days.

from mieru.

Related Issues (20)

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.