无法在docker中启动jboss Host Controller

时间:2017-10-07 07:38:39

标签: docker jboss centos

domain controller on centos <-- host machine
host controller on centos   <-- docker

我已经在centos docker映像上安装了jboss,并尝试启动独立服务器,该服务器始于任何问题。但是,当我想启动从属设备并将其与域同步时,我得到如下错误:

15:57:18,045 DEBUG [org.jboss.modules] (Controller Boot Thread) Module org.jboss.as.cli:main defined by local module loader @26538d04 (finder: local module finder @374f1544 (roots: /opt/jboss-eap-6.2/modules,/opt/jboss-eap-6.2/modules/system/layers/base))
15:57:23,477 DEBUG [org.jboss.as.host.controller] (Controller Boot Thread) failed to connect to 10.10.10.10:9999: java.net.ConnectException: JBAS012144: Could not connect to remote://10.10.10.10:9999. The connection timed out
      at org.jboss.as.protocol.ProtocolConnectionUtils.connectSync(ProtocolConnectionUtils.java:131) [jboss-as-protocol-7.3.0.Final-redhat-14.jar:7.3.0.Final-redhat-14]
      at org.jboss.as.host.controller.RemoteDomainConnection.openConnection(RemoteDomainConnection.java:198) [jboss-as-host-controller-7.3.0.Final-redhat-14.jar:7.3.0.Final-redhat-14]
      at org.jboss.as.host.controller.RemoteDomainConnection$InitialConnectTask.connect(RemoteDomainConnection.java:560) [jboss-as-host-controller-7.3.0.Final-redhat-14.jar:7.3.0.Final-redhat-14]
      at org.jboss.as.protocol.ProtocolConnectionManager.connect(ProtocolConnectionManager.java:70) [jboss-as-protocol-7.3.0.Final-redhat-14.jar:7.3.0.Final-redhat-14]
      at org.jboss.as.host.controller.RemoteDomainConnection.connect(RemoteDomainConnection.java:136) [jboss-as-host-controller-7.3.0.Final-redhat-14.jar:7.3.0.Final-redhat-14]
      at org.jboss.as.host.controller.RemoteDomainConnectionService.register(RemoteDomainConnectionService.java:194) [jboss-as-host-controller-7.3.0.Final-redhat-14.jar:7.3.0.Final-redhat-14]
      at org.jboss.as.host.controller.DomainModelControllerService.connectToDomainMaster(DomainModelControllerService.java:577) [jboss-as-host-controller-7.3.0.Final-redhat-14.jar:7.3.0.Final-redhat-14]
      at org.jboss.as.host.controller.DomainModelControllerService.boot(DomainModelControllerService.java:438) [jboss-as-host-controller-7.3.0.Final-redhat-14.jar:7.3.0.Final-redhat-14]
      at org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:253) [jboss-as-controller-7.3.0.Final-redhat-14.jar:7.3.0.Final-redhat-14]
      at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_80]

我启动容器的方式如下:

docker run -p 18080:808 -p 19990:9990 -it jboss_test

我可以ping容器,从docker容器ping到主机。

然而,当我尝试在端口中启动web服务器时,端口为80,我在从主机执行wget时拒绝连接

wget http://10.10.10.20:80&lt; - 拒绝主机连接。在docker网络中我可能会遗漏一些东西吗?

0 个答案:

没有答案