-
Notifications
You must be signed in to change notification settings - Fork 11.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docker模式下运行代理失败 #478
Labels
status: overdue
猫猫叹气:年久失修
Comments
This was referenced Mar 10, 2023
Closed
不是代理的问题,是你用法不对,Docker 内部不能用宿主机的 127.0.0.1 代理,除非你在 Docker 容器内部起了代理服务 |
感谢你的回复,我确实是使用了宿主机的代理。之前我也尝试过docker network,也没有通。最后使用了
测试代理
我平时 dokcer 用的不多,不知道使用 宿主机的 127.0.0.1 代理 有什么弊端吗?目前文档中使用的代理方式也是通过 --env传参传入容器内部的。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
docker 镜像运行
打印了容器内部的变量传递正确。 并且可以访问代理。我本地的docker也可以正常代理运行。
经过一下午的排查,发现项目 proxy 的代码和 fetch failed (OpenAI API banned in certain countries like China) 稍有差异。
修改后成功访问。
The text was updated successfully, but these errors were encountered: