使用docker部署flask遇到的问题

容器内能访问,但是外网映射了端口怎么也访问不了

解决方法:

app.run() 添加参数host='0.0.0.0'

猜你喜欢

转载自www.cnblogs.com/chenqionghe/p/9343414.html