我正在尝试通过 docker 运行 streamlit。我指的是这个https://github.com/domoritz/streamlit-docker的例子。以下是我的系统的详细信息:
Operating System: Windows 10 Home
System type: 64-bit operating system
Docker version 19.03.1
我执行了docker-compose run streamlit black src/
命令并得到以下输出:
reformatted src/main.py All done! ✨ ✨ 1 file reformatted.
接下来我执行docker-compose up
命令并得到以下输出:
Starting streamlit-docker-master_streamlit_1 ... done
Attaching to streamlit-docker-master_streamlit_1
streamlit_1 |
streamlit_1 | You can now view your Streamlit app in your browser.
streamlit_1 |
streamlit_1 | Network URL: http://172.19.0.2:8501
streamlit_1 | External URL: http://64.121.102.75:8501
但我无法在浏览器中查看任何应用程序输出。我在 docker 终端上无限期地看到上述输出,直到我按下Ctrl + C
. 当我尝试打开链接:http://localhost:8501/?name=main
时,它说无法访问该站点。
有人可以帮我解决这个问题吗?
谢谢