当前位置: 首页 > article >正文

使用Docker创建一个WebSphere服务

目录

1.获取镜像

2.查看我拥有的镜像

3. 启动镜像 (使用镜像,生成容器,并启动容器)

4.查看密码(进入容器内部,访问容器)

5.网页执行

■.其它 (问题解决中。。。)

1.删除容器

2.Docker启动容器失败查看容器日志

3.启动Log

4.查看端口配置

5.使用帮助

6.进入交互模式

​编辑

7.启动失败,查看Log


====

1.获取镜像

docker pull ibmcom/websphere-traditional

===

===

2.查看我拥有的镜像

docker images

3. 启动镜像 (使用镜像,生成容器,并启动容器)

docker run \
-d \
--name was-server \
-h was-server
-p 9043:9043 \
-p 9443:9443 \
ibmcom/websphere-traditional:latest

 

ID

4ba0c3c5b83e

4.查看密码(进入容器内部,访问容器)

docker exec 4ba0c3c5b83e cat /tmp/PASSWORD

EWY8NvIt

===

5.网页执行

https://IP:9043/ibm/console/login.do?action=secure

192.168.31.128https://192.168.31.128:9043/ibm/console/login.do?action=secure/ibm/console/login.do?action=secure   

进行登录,默认账号为wsadmin

wsadmin

但是访问不了。。。。。

====

■.其它 (问题解决中。。。)

1.删除容器

docker rm id

2.Docker启动容器失败查看容器日志

https://www.cnblogs.com/lucktomato/p/16709088.html

docker inspect --format '{{.LogPath}}' cd995410052a

===

/var/lib/docker/containers/cd995410052a3c442d6fe984d9a217fd5156fd90f3b5399c3f2a0a9d5b1f39af/cd995410052a3c442d6fe984d9a217fd5156fd90f3b5399c3f2a0a9d5b1f39af-json.log

3.启动Log

 docker exec websphere cat /opt/IBM/WebSphere/AppServer/profiles/AppSrv01/logs/server1/startServer.log

4.查看端口配置

docker exec websphere cat /opt/IBM/WebSphere/AppServer/profiles/AppSrv01/config/cells/DefaultCell01/nodes/DefaultNode01/serverindex.xml

5.使用帮助

GitHub - WASdev/ci.docker.websphere-traditional: Dockerfiles for WebSphere Application Server traditional

6.进入交互模式

docker exec -it 4ba0c3c5b83e bash

 

7.启动失败,查看Log

docker logs -f --tail=all was-server

VR0100W: An error occurred initializing, server1 [class com.ibm.ws.runtime.component.ServerImpl]\ncom.ibm.ws.exception.ConfigurationError: com.ibm.websphere.ssl.SSLException: com.ibm.websphere.ssl.SSLException: Keystore file exists, but is empty: \/opt\/IBM\/WebSphere\/AppServer\/profiles\/AppSrv01\/config\/cells\/DefaultCell01\/nodes\/DefaultNode01\/trust.p12\n\tat com.ibm.ws.ssl.core.SSLComponentImpl.initialize(SSLComponentImpl.java:208)\n\tat com.ibm.ws.runtime.component.ContainerHelper.initWsComponent(ContainerHelper.java:1193)\n\tat com.ibm.ws.runtime.component.ContainerHelper.initializeComponent(ContainerHelper.java:1100)\n\tat com.ibm.ws.runtime.component.ContainerHelper.initializeComponents(ContainerHelper.java:902)\n\tat com.ibm.ws.runtime.component.ContainerImpl.initializeComponents(ContainerImpl.java:776)\n\tat com.ibm.ws.runtime.component.ContainerImpl.initializeComponents(ContainerImpl.java:750)\n\tat com.ibm.ws.runtime.component.ServerImpl.initialize(ServerImpl.java:377)\n\tat com.ibm.ws.runtime.WsServerImpl.bootServerContainer(WsServerImpl.java:307)\n\tat com.ibm.ws.runtime.WsServerImpl.start(WsServerImpl.java:238)\n\tat com.ibm.ws.runtime.WsServerImpl.main(WsServerImpl.java:711)\n\tat com.ibm.ws.runtime.WsServer.main(WsServer.java:59)\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:90)\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)\n\tat java.lang.reflect.Method.invoke(Method.java:508)\n\tat com.ibm.wsspi.bootstrap.WSLauncher.launchMain(WSLauncher.java:234)\n\tat com.ibm.wsspi.bootstrap.WSLauncher.main(WSLauncher.java:101)\n\tat com.ibm.wsspi.bootstrap.WSLauncher.run(WSLauncher.java:82)\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:90)\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)\n\tat java.lang.reflect.Method.invoke(Method.java:508)\n\tat org.eclipse.equinox.internal.app.EclipseAppContainer.callMethodWithException(EclipseAppContainer.java:587)\n\tat org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:198)\n\tat org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)\n\tat org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)\n\tat org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:354)\n\tat org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:181)\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:90)\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)\n\tat java.lang.reflect.Method.invoke(Method.java:508)\n\tat org.eclipse.core.launcher.Main.invokeFramework(Main.java:340)\n\tat org.eclipse.core.launcher.Main.basicRun(Main.java:282)\n\tat org.eclipse.core.launcher.Main.run(Main.java:981)\n\tat com.ibm.wsspi.bootstrap.WSPreLauncher.launchEclipse(WSPreLauncher.java:423)\n\tat com.ibm.wsspi.bootstrap.WSPreLauncher.main(WSPreLauncher.java:180)\nCaused by: com.ibm.websphere.ssl.SSLException: com.ibm.websphere.ssl.SSLException: Keystore file exists, but is empty: \/opt\/IBM\/WebSphere\/AppServer\/profiles\/AppSrv01\/config\/cells\/DefaultCell01\/nodes\/DefaultNode01\/trust.p12\n\tat com.ibm.ws.ssl.config.SSLConfigManager.initializeServerSSL(SSLConfigManager.java:376)\n\tat com.ibm.ws.ssl.core.SSLComponentImpl.initialize(SSLComponentImpl.java:145)\n\t... 36 more\nCaused by: com.ibm.websphere.ssl.SSLException: Keystore file exists, but is empty: \/opt\/IBM\/WebSphere\/AppServer\/profiles\/AppSrv01\/config\/cells\/DefaultCell01\/nodes\/DefaultNode01\/trust.p12\n\tat com.ibm.ws.ssl.config.KeyStoreManager.checkIfTrustStoreExistsAndCreateIfNot(KeyStoreManager.java:1749)\n\tat com.ibm.ws.ssl.config.SSLConfigManager.parseSecureSocketLayer1(SSLConfigManager.java:1207)\n\tat com.ibm.ws.ssl.config.SSLConfigManager.parseSSLConfig(SSLConfigManager.java:737)\n\tat com.ibm.ws.ssl.config.SSLConfigManager.initializeServerSSL(SSLConfigManager.java:282)\n\t... 37 more\nCaused by: java.io.IOException: Keystore file exists, but is empty: \/opt\/IBM\/WebSphere\/AppServer\/profiles\/AppSrv01\/config\/cells\/DefaultCell01\/nodes\/DefaultNode01\/trust.p12\n\tat com.ibm.ws.ssl.config.KeyStoreManager$GetKeyStoreInputStreamAction.run(KeyStoreManager.java:2349)\n\tat java.security.AccessController.doPrivileged(AccessController.java:747)\n\tat com.ibm.ws.ssl.config.KeyStoreManager.getInputStream(KeyStoreManager.java:2297)\n\tat com.ibm.ws.ssl.config.KeyStoreManager.getKeyStore(KeyStoreManager.java:2234)\n\tat com.ibm.ws.ssl.config.KeyStoreManager.checkIfTrustStoreExistsAndCreateIfNot(KeyStoreManager.java:1729)\n\t... 40 more\n","ibm_datetime":"2023-04-08T13:57:29.761+0000","ibm_messageId":"WSVR0100W","ibm_threadId":"00000001","module":"com.ibm.ws.runtime.WsServerImpl","loglevel":"SEVERE"}

===


http://www.kler.cn/a/7328.html

相关文章:

  • 什么是SSL VPN?其中的协议结构是怎样的?
  • Excel超级处理器:高效实现2种批量生成二维码方式
  • 《操作系统 - 清华大学》3 -3:连续内存分配:内存碎片与分区的动态分配
  • Android加载pdf
  • 【实验11】卷积神经网络(2)-基于LeNet实现手写体数字识别
  • Word_小问题解决_1
  • (Week 15)综合复习(C++,字符串,数学)
  • EasyCVR通道收藏的功能拓展
  • LeetCode算法小抄--滑动窗口算法
  • openEuler Linux 部署 HadoopHA
  • 安装k8s工具之二-kubeasz
  • session和jwt哪个更好
  • Visio导入CAD绘图问题总结-更改形状线条颜色问题解决
  • Java ---多态
  • 利用CMake工具从源码编译出osgEarth库
  • Java基础——可变参数,集合操作工具类Collections
  • 【NLP入门教程】五、命名实体识别
  • 微服务学习-SpringCloud -Nacos (单机部署)
  • Windows 上使用 VS2022 使用远程Linux 系统调试运行代码
  • Linux中的算法分离手段
  • Git Commit Message 应该怎么写?
  • 【案例实践】MCM箱模型实践技术应用与O3形成途径、生成潜势、敏感性分析
  • 【创作赢红包】Activity初窥门径
  • C#,初学琼林(04)——查询(搜索)数组内指定(值)的元素与全文检索“倒排序”技术的实现代码源程序
  • OMG,太牛了!!!华为18级架构师总结出24W字Java面试手册
  • 伪数组和真数组的区别