docs: add TUN mode configuration guide and docker-compose option#89
Open
ranxi2001 wants to merge 1 commit intoHeavrnl:mainfrom
Open
docs: add TUN mode configuration guide and docker-compose option#89ranxi2001 wants to merge 1 commit intoHeavrnl:mainfrom
ranxi2001 wants to merge 1 commit intoHeavrnl:mainfrom
Conversation
- Update README.md with instructions for TUN mode network configuration - Add network_mode: host option to docker-compose.yml comments
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
说明
本次更新添加了关于开启 TUN 模式后的网络配置说明。
开启 TUN 模式后,容器内可以使用代理,但外部无法访问容器内服务。
解决方法
提供了两种解决方法:
简单方法:
在 [docker-compose.yml]中提供了
network_mode: host配置选项(已注释),开启后可直接解决连接问题。复杂方法:
在 [README.md]中添加了详细步骤,包括获取代理地址和为容器配置环境变量的方法。
变更内容
network_mode: host注释选项参考来源:linux vps tun 模式下 docker冲突解决方案