Skip to content

refactor: 注释掉代理地址以避免在 Linux 下使用时的问题#193

Merged
CJackHwang merged 3 commits intoCJackHwang:devfrom
kay-ou:dev
Jun 14, 2025
Merged

refactor: 注释掉代理地址以避免在 Linux 下使用时的问题#193
CJackHwang merged 3 commits intoCJackHwang:devfrom
kay-ou:dev

Conversation

@kay-ou
Copy link
Copy Markdown

@kay-ou kay-ou commented Jun 13, 2025

host.docker.internal 是一个特殊的 DNS 名称,它用于在 Windows 和 macOS 上解析 Docker 容器的宿主机地址。然而,在 Linux(包括 Ubuntu)上,它默认不会被解析,因此你的容器无法访问宿主机的代理地址,导致 apt update 失败。

尝试很多方法经过测试都发现不稳定,先注释掉这行保证linux下docker不出错,看以后有没有机会找出更稳定的方案来

@CJackHwang CJackHwang merged commit df2a1eb into CJackHwang:dev Jun 14, 2025
CJackHwang added a commit that referenced this pull request Jun 14, 2025
Merge pull request #193 from kaykouo/dev

refactor: 注释掉代理地址以避免在 Linux 下使用时的问题
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.

2 participants