【问题标题】:Unable to run websphere application server docker image无法运行 websphere 应用程序服务器 docker 映像
【发布时间】:2021-06-07 12:53:50
【问题描述】:

我已从 docker pull ibmcom/websphere-traditional 命令中提取 docker 映像。
并执行以下命令以运行 websphere 应用程序服务器

sudo docker run -it --name was145-server -h was145-server -e UPDATE_HOSTNAME=true -e PROFILE_NAME=AppSrv01 -e NODE_NAME=DefaultNode02 -e SERVER_NAME=server2 -p 9043:9043 -p 9443:9443 -v /scratch/wls-docker/obs-swedbank-was/data-files/opt/IBM/WebSphere/:/opt/IBM/WebSphere/ -d ibmcom/websphere-traditional:latest
我遇到以下错误

/work/applyConfig.sh: line 3: /opt/IBM/WebSphere/AppServer/bin/wsadmin.sh: No such file or directory
/work/start_server.sh: line 15: hostname: command not found
/work/start_server.sh: line 15: wsadmin.sh: command not found
HPEL is enabled
Starting logViewer ................
/work/start_server.sh: line 29: /opt/IBM/WebSphere/AppServer/bin/logViewer.sh: No such file or directory
Starting server ...................
/work/start_server.sh: line 22: /opt/IBM/WebSphere/AppServer/profiles/AppSrv01/bin/startServer.sh: No such file or directory
Configure logging mode
/work/configure_logging.sh: line 4: /opt/IBM/WebSphere/AppServer/bin/wsadmin.sh: No such file or directory
/work/applyConfig.sh: line 3: /opt/IBM/WebSphere/AppServer/bin/wsadmin.sh: No such file or directory
HPEL is enabled
Starting logViewer ................
/work/start_server.sh: line 29: /opt/IBM/WebSphere/AppServer/bin/logViewer.sh: No such file or directory
Starting server ...................
/work/start_server.sh: line 22: /opt/IBM/WebSphere/AppServer/profiles/AppSrv01/bin/startServer.sh: No such file or directory

【问题讨论】:

    标签: linux docker websphere


    【解决方案1】:

    问题来自您将/opt/IBM/WebSphere/ 映射到主机文件夹“/scratch/wls-docker/obs-swedbank-was/data-files/opt/IBM/WebSphere/”,我想它是空!

    当容器启动时,它会尝试运行/opt/IBM/WebSphere/AppServer/bin/wsadmin.sh,在物理路径/scratch/wls-docker/obs-swedbank-was/data-files/opt/IBM/WebSphere/AppServer/bin/wsadmin.sh中搜索它,但没有找到。

    我说的对你来说是真的吗?

    我不确切知道该文件夹包含什么,但我建议您仅将所需的 /opt/IBM/WebSphere/ 子文件夹映射到 externals 文件夹,而将二进制组件保留在容器内。

    【讨论】:

    • 是的,我认为这些 shell 文件应该复制到受尊重的路径中,因为我已经在 DockerFile 中检查过,因为它正在创建其他文件夹
    • 但是很抱歉,我没有任何解决方案,您已经从技术上解释了这个问题,但是我应该怎么做才能解决这个问题?
    • 我编辑了这篇文章,为您提供了更多信息和建议。
    • 如果它适合您,请接受答案。
    • /opt/IBM/WebSphere/AppServer/bin/logViewer.sh 这个shell文件也不包含在源代码中。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2020-08-03
    • 1970-01-01
    • 2016-01-26
    • 2013-11-04
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多