-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
在 docker 中使用 mihomo - windowBR的博客 #10
Comments
补充:docker 中运行仍然可以使用 TUN 模式来接管设备流量,操作方式为在 mihomo 的 docker run 命令中添加以下参数即可 |
大佬在飞牛docker中添加这个命令容器会一直重启报错flag provided but not defined: -device |
你打错了,注意看清是两道杠不是一道杠 |
我照着你的复制的,不知道咋回事 |
我照着你的复制的,不知道咋回事 |
把你完整启动命令贴出来我看一下吧 |
--device=/dev/net/tun --cap-add=NET_ADMIN |
这样的话确实不行,因为飞牛OS 的 GUI 界面目前似乎还不支持给 |
好嘞大佬辛苦了 |
大佬你有使用tun吗,开启之后容器内部正常使用,但是使用ddns后外网无法访问,不知道咋回事 |
1 similar comment
大佬你有使用tun吗,开启之后容器内部正常使用,但是使用ddns后外网无法访问,不知道咋回事 |
tun 的话用过了挺正常的,但 ddns 我没试过所以不太清楚,你可能得自己研究下网络相关的设置 |
好嘞大佬十分感谢 |
https://windowbr.top/2024/11/02/mihomo-docker/?
本文是对上一篇博文的补充,推荐您先阅读。 显然让 mihomo 运行在 docker 中是更加优雅的选择,而上一篇 Blog 编写的时候有接管设备所有流量的需求,但后续这个需求消失了,在经过一番研究过后决定补充一下 docker 的方案。 优缺点分析相比本地运行 缺点:无法使用 TUN 模式来接管所有设备流量 优点:能使用 docker 进行更方便的统一管理 0. 须知本文默认您已经安装好了 do
The text was updated successfully, but these errors were encountered: