refactor: 注释掉代理地址以避免在 Linux 下使用时的问题#193
Merged
CJackHwang merged 3 commits intoCJackHwang:devfrom Jun 14, 2025
Merged
Conversation
…nment variable definitions
…d environment variable definitions" This reverts commit c59b136.
CJackHwang
added a commit
that referenced
this pull request
Jun 14, 2025
Merge pull request #193 from kaykouo/dev refactor: 注释掉代理地址以避免在 Linux 下使用时的问题
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.
host.docker.internal 是一个特殊的 DNS 名称,它用于在 Windows 和 macOS 上解析 Docker 容器的宿主机地址。然而,在 Linux(包括 Ubuntu)上,它默认不会被解析,因此你的容器无法访问宿主机的代理地址,导致 apt update 失败。
尝试很多方法经过测试都发现不稳定,先注释掉这行保证linux下docker不出错,看以后有没有机会找出更稳定的方案来