【发布时间】:2018-12-25 06:32:34
【问题描述】:
我已将the Docker Kong image 升级到版本 0.14.0,它停止响应来自容器外部的连接:
$ curl 127.0.0.1:8001 --trace-ascii dump.txt
== Info: Rebuilt URL to: 127.0.0.1:8001/
== Info: Trying 127.0.0.1...
== Info: Connected to 127.0.0.1 (127.0.0.1) port 8001 (#0)
=> Send header, 78 bytes (0x4e)
0000: GET / HTTP/1.1
0010: Host: 127.0.0.1:8001
0026: User-Agent: curl/7.47.0
003f: Accept: */*
004c:
== Info: Recv failure: Connection reset by peer
== Info: Closing connection 0
端口映射是
0.0.0.0:8000-8001->8000-8001/tcp, 0.0.0.0:8443-8444->8443-8444/tcp
尝试从容器内部连接时一切正常:
/ # curl 127.0.0.1:8001
{"plugins":{"enabled_in_cluster":[], ...
8000 端口可从容器外部和内部使用。那会是什么?
【问题讨论】: