oracle/docker-images

weblogic uses the external mapped port inside the container when 7201:7001 docker port mapping is used

Open

#1,860 创建于 2021年2月12日

在 GitHub 查看
 (10 评论) (0 反应) (1 负责人)Shell (6,139 star) (5,379 fork)batch import
help wantedweblogic

描述

Hello, I am starting two WebLogic 12.2.1.4 domains in docker from my docker-compose.yml file. So I am starting 4 containers:

  • admin-server-A + managed-server-A1
  • admin-server-B + managed-server-B1

The following Docker port mapping is used:

  • admin-server-A: 7101:7001
  • managed-server-A1: 8101:8001
  • admin-server-B: 7201:7001
  • managed-server-B1: 8201:8001

Everything works fine, except this:

<Feb 12, 2021 5:11:21,002 PM UTC> <Notice> <JMX> <BEA-149535> <JMX Resiliency Activity Server=All Servers : Resolving connection list DomainRuntimeServiceMBean> 
javax.ws.rs.ProcessingException: java.net.ConnectException: Tried all: '1' addresses, but could not connect over HTTP to server: 'localhost', port: '7201'
failed reasons:
 [0] address:'localhost/127.0.0.1',port:'7201' : java.net.ConnectException: Connection refused

The 2nd WL admin server tries to use port 7201 in the container but actually, it is listening on the default 7001 port inside the container. Port 7201 is used from the host machine, and of course, WL is not listening on 7201 inside the container.

Why WL sees and wanna use the host port, instead of use the default 7001?

贡献者指南