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

docker容器启动程序后无法访问 #346

Open
monkeyGeek369 opened this issue Jul 6, 2024 · 4 comments
Open

docker容器启动程序后无法访问 #346

monkeyGeek369 opened this issue Jul 6, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@monkeyGeek369
Copy link

通过docker成功启动程序,也开启了webui,但是奇怪的是容器内可以访问127.0.0.1:7860但是宿主机无法访问。
1、已经做了端口映射,无效
2、容器采用host模式,无效
3、容器内可以ping通宿主机,但宿主机无法ping通容器ip
4、容器内可以访问页面

微信截图_20240706200743
微信截图_20240706200813
微信截图_20240706201035

@monkeyGeek369 monkeyGeek369 added the bug Something isn't working label Jul 6, 2024
@monkeyGeek369
Copy link
Author

求大恨帮忙,到底什么原因?

@monkeyGeek369
Copy link
Author

起了两个容器,无论是端口映射还是host网络都是一样的

docker run -p 7860:7860 --name fish-speech-myself -v E:\gitProject\fish-speech:/exp -d --gpus all fish-speech-fish-speech tail -f /dev/null

docker run --network host --name fish-speech-myself -v E:\gitProject\fish-speech:/exp -d --gpus all fish-speech-fish-speech tail -f /dev/null

@AnyaCoder
Copy link
Collaborator

在命令行里输入

netstat -ano | findstr :7860

看看是否有占用。

@fallbernana123456
Copy link

fallbernana123456 commented Jul 8, 2024

https://speech.fish.audio/inference/#webui 这个问题跟gradio相关,要使用demo.launch(..., server_name="0.0.0.0")
或者设置环境变量GRADIO_SERVER_NAME="0.0.0.0"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants