老郑的博客

木叶飞舞之处,火亦生生不息!

netcore 容器内部监听设置localhost 外部无法访问

情况1

  由于localhost只能够在容器内部访问,所以在设置的时候改为*号,而不是固定ip。

情况2

  也可能由于只配置了容器和宿主机的映射,容器内部未监听端口号导致

情况3

  如果是无法连接sqlserver数据库,请检查数据库版本,liunx当中低于sqlserver 2008 sp3 会报错。

:A connection was successfully established with the server, but then an error occurred during the pre-login handshake. (provider: TCP Provider, error: 35 - An internal exception was caught)
posted @ 2020-01-10 09:43  zyz1  阅读(634)  评论(0编辑  收藏  举报