设置密码
1 | mkdir -p /usr/local/websphere |
1 | cd websphere |
1 | touch PASSWORD |
1 | vim PASSWORD |
输入
wsadmin888
拉取镜像
1 | docker pull websphere-traditional:latest |
运行容器
1 | docker run --name websphere -v $(pwd)/PASSWORD:/tmp/PASSWORD -p 9043:9043 -p 9443:9443 -d ibmcom/websphere-traditional:latest |
部署应用
账户:wsadmin
密码:wsadmin888
- Applications -> Application Types -> WebSphere enterprise applications -> Install -> 选择应用安装包test.war -> Next
- Fast Path -> Next
- 勾选Distribute Application,勾选Create MBeans for resources -> Next
- 勾选Select -> Next
- 勾选Select -> Next
- Context Root输入/test -> Next -> Finish
- 点击Save
- 在Enterprise Applications列表,勾选 -> Start
- 访问:https://ip:9443/test
参考:
https://hub.docker.com/r/ibmcom/websphere-traditional/
https://www.cnblogs.com/DFX339/p/8572445.html