Skip to content

docs: add TUN mode configuration guide and docker-compose option#89

Open
ranxi2001 wants to merge 1 commit intoHeavrnl:mainfrom
ranxi2001:main
Open

docs: add TUN mode configuration guide and docker-compose option#89
ranxi2001 wants to merge 1 commit intoHeavrnl:mainfrom
ranxi2001:main

Conversation

@ranxi2001
Copy link
Copy Markdown

  • Update README.md with instructions for TUN mode network configuration
  • Add network_mode: host option to docker-compose.yml comments

说明

本次更新添加了关于开启 TUN 模式后的网络配置说明。
开启 TUN 模式后,容器内可以使用代理,但外部无法访问容器内服务。

解决方法

提供了两种解决方法:

  1. 简单方法
    在 [docker-compose.yml]中提供了 network_mode: host 配置选项(已注释),开启后可直接解决连接问题。

  2. 复杂方法
    在 [README.md]中添加了详细步骤,包括获取代理地址和为容器配置环境变量的方法。

变更内容

  • 修改 [docker-compose.yml]:添加 network_mode: host 注释选项
  • 修改 [README.md]:新增 "开启 TUN 模式后的网络配置" 章节

参考来源:linux vps tun 模式下 docker冲突解决方案

- Update README.md with instructions for TUN mode network configuration
- Add network_mode: host option to docker-compose.yml comments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant