Skip to content
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

fix docker proxy config #770

Merged
merged 1 commit into from
Apr 13, 2023
Merged

fix docker proxy config #770

merged 1 commit into from
Apr 13, 2023

Conversation

JessySnow
Copy link
Contributor

Docker 配置代理部分存在错误。容器启动后 proxychains 报错,提示不接受非数字形式的代理地址,因此将代理地址更改为 127.0.0.1,同时修改容器的网络模式为 host

@Yidadaa Yidadaa merged commit 480ffa0 into ChatGPTNextWeb:main Apr 13, 2023
@deepwzh
Copy link

deepwzh commented Apr 14, 2023

修改--net=host是不是必要的呢,会不会存在无法更改端口映射的情况呢?
比如我本地有了3000端口,且不方便被更改,原有的网络模式可以将容器内3000映射为3001, 但是host网络模式就不方便做这样的更改,只能修改应用本身的配置文件了

@JessySnow
Copy link
Contributor Author

修改--net=host是不是必要的呢,会不会存在无法更改端口映射的情况呢?
比如我本地有了3000端口,且不方便被更改,原有的网络模式可以将容器内3000映射为3001, 但是host网络模式就不方便做这样的更改,只能修改应用本身的配置文件了

的确不是必须的,可以使用默认的 bridge 模式,但是需要将代理地址修改为宿主机在 docker0 虚拟网卡上分配的 IP,一般都是 172.17.0.1

yxl pushed a commit to yxl/ChatGPT-Next-Web that referenced this pull request May 4, 2023
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