WLSTException:执行连接时发生错误:获取初始上下文时出错。没有服务器在t3://上运行

时间:2018-08-03 03:50:22

标签: docker weblogic

连接到服务器时发生此错误。这是一个Weblogic泊坞窗映像。将简单的python脚本和xx.ear文件复制到容器中,并将在容器内执行python脚本。目前,我的脚本仅位于

行以下
#config.py file    
connect('weblogic','xxxx','t3://localhost:7001')

我的docker文件

FROM weblogic-docker:0-SNAPSHOT
#This is configured weblogic docker image.

USER oracle
#xx.ear file is in this directory
COPY dockerfiles/local_domainScripts /u01/oracle/local_domainScripts/

RUN /u01/oracle/wlst /u01/oracle/local_domainScripts/config.py
# Define default command to start bash.

EXPOSE $NM_PORT $ADMIN_PORT $MS_PORT
WORKDIR $DOMAIN_HOME

CMD ["startWebLogic.sh"]

0 个答案:

没有答案
相关问题