> 文章列表 > 使用Docker创建一个WebSphere服务,安装失败。。。

使用Docker创建一个WebSphere服务,安装失败。。。

使用Docker创建一个WebSphere服务,安装失败。。。

目录

1.获取镜像

2.查看我拥有的镜像

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

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

5.网页执行

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

1.删除容器

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

3.查看启动Log

4.查看端口配置

5.查看使用帮助(此镜像对应的GitHub)

6.进入交互模式

​编辑

7.查看Docker的容器的Log


====

1.获取镜像

docker pull ibmcom/websphere-traditional

===

2.查看我拥有的镜像

docker images

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

docker run --name websphere \\-h websphere \\-e UPDATE_HOSTNAME=true \\-p 9043:9043 \\-p 9443:9443 \\-p 443:443 \\--restart=always \\-v /bin/hostname:/bin/hostname \\-v /var/run/docker.sock:/var/run/docker.sock \\-v /usr/bin/python2:/usr/bin/python2 \\-d ibmcom/websphere-traditional

===

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

docker exec e5d959891b2c cat /tmp/PASSWORD

9wKJR6F7

===

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)

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

6.进入交互模式

docker exec -it 4ba0c3c5b83e bash

7.查看Docker的容器的Log

docker logs -f websphere

===

就这样吧,等以后有时间再弄...

===