我在Tomcat 7上有一个docker Image基础。我的web应用程序启动了一个ActiveMQ实例。 要构建容器,我添加以下配置 docker run .... -p 61616:61616 ...
我可以看到Docker Inspect命令的配置:
$dataProvider = new ActiveDataProvider([
'query' => $your_query,
'pagination' => false,
]);
如果我跑的话,在容器内:
telnet localhost 61616
我可以连接到ActiveMQ实例:
"Ports": {
"5005/tcp": [
{
"HostIp": "0.0.0.0",
"HostPort": "8091"
}
],
"61616/tcp": [
{
"HostIp": "0.0.0.0",
"HostPort": "61616"
}
],
"8080/tcp": [
{
"HostIp": "0.0.0.0",
"HostPort": "8090"
}
]
},
从我的主人那里我不能:
Trying ::1...
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
▒ActiveMQTcpNoDelayEnabledSizePrefixDisabled CacheSizeStackTraceEnabled
CacheEnabledTightEncodingEnabledMaxInactivityDurationu0 MaxInactivityDurationInitalDelay'
我使用netstat查找端口并且可以使用:
netstat -nao
Trying ::1...
Connected to localhost.
Escape character is '^]'.
Connection closed by foreign host.
如果我尝试telnet到另一个端口,我可以连接。 我错过了什么?