Skip to content

在构建 image的阶段就使用代理,这样再进行 apt更新时就不会太慢#190

Merged
CJackHwang merged 2 commits intoCJackHwang:devfrom
Vstay97:vstay97
Jun 13, 2025
Merged

在构建 image的阶段就使用代理,这样再进行 apt更新时就不会太慢#190
CJackHwang merged 2 commits intoCJackHwang:devfrom
Vstay97:vstay97

Conversation

@Vstay97
Copy link
Copy Markdown
Contributor

@Vstay97 Vstay97 commented Jun 13, 2025

No description provided.

@CJackHwang CJackHwang changed the base branch from main to dev June 13, 2025 15:36
@CJackHwang CJackHwang merged commit d29c155 into CJackHwang:dev Jun 13, 2025
@purepoorx
Copy link
Copy Markdown

host.docker.internal,貌似只在windows上能用吧,Linux上用不了。更新了,现在ubuntu上部署的docker启动不了。

7.275 W: Failed to fetch http://deb.debian.org/debian/dists/bookworm/InRelease Could not resolve 'host.docker.internal'
7.275 W: Failed to fetch http://deb.debian.org/debian/dists/bookworm-updates/InRelease Could not resolve 'host.docker.internal'
7.275 W: Failed to fetch http://deb.debian.org/debian-security/dists/bookworm-security/InRelease Could not resolve 'host.docker.internal'
7.275 W: Some index files failed to download. They have been ignored, or old ones used instead.

@Vstay97
Copy link
Copy Markdown
Contributor Author

Vstay97 commented Jun 14, 2025

host.docker.internal,貌似只在windows上能用吧,Linux上用不了。更新了,现在ubuntu上部署的docker启动不了。

7.275 W: Failed to fetch http://deb.debian.org/debian/dists/bookworm/InRelease Could not resolve 'host.docker.internal' 7.275 W: Failed to fetch http://deb.debian.org/debian/dists/bookworm-updates/InRelease Could not resolve 'host.docker.internal' 7.275 W: Failed to fetch http://deb.debian.org/debian-security/dists/bookworm-security/InRelease Could not resolve 'host.docker.internal' 7.275 W: Some index files failed to download. They have been ignored, or old ones used instead.

感谢指出,是我的疏忽。macos 下也是可用的,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.

3 participants