使用docker部署flask遇到的问题

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

解决方法:

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

posted @ 2018-07-20 20:23  雪山飞猪  阅读(1557)  评论(0编辑  收藏  举报