In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-21 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This article introduces the knowledge of "how to make a Websphere image of docker". Many people will encounter such a dilemma in the operation of actual cases, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
Preferably a centos system, easy to install
Yum install docker-io
Start the service
Systemctl start docker
Download a centos image
Docker pull centos
View locally downloaded images
Docker images
Run the centos image and command the container for easy operation.
Docker run-it-- name centos centos bash
View containers that have been created
Docker ps-a
End container
Docker kill centos
Delete Container
Docker rm centos
I have extracted the Websphere installation package to the was directory and hung the directory in the container. My installation package is under / root/was and mapped to the container / tmp/was (do not remove the following init command, otherwise the system will report an error D-Bus connection: Operation not permitted)
Docker run-itd-v / root/was:/tmp/was-- name centos centos / usr/sbin/init
Connect to a container
Docker exec-it centos / bin/bash
Change to the Install Manager directory and install Install Manager in / tmp/was/WASND/, first.
. / consoleinst.sh
Follow the prompts to enter the installation of Install Manager, and then enter the installation directory of Install Manager
/ opt/IBM/InstallationManager/eclipse/tools
List the directories that can be installed. My installation package has been unzipped to / tmp/was.
. / imcl listAvailablePackages-repositories / tmp/was/WASND/
Install WASND, set the installation directory and language
. / imcl install com.ibm.websphere.ND.v85_8.5.5000.20130514_1044-repositories / tmp/was/WASND/-installationDirectory / opt/IBM/WebSphere/AppServer-sharedResourcesDirectory / opt/IBM/IMShared-properties cic.selector.nl=zh-acceptLicense
Install IHS, PLG, WCT, etc.
. / imcl install com.ibm.websphere.IHS.v85_8.5.5000.20130514_1044-repositories / tmp/was/SUPPL/-installationDirectory / opt/IBM/HTTPServer-properties user.ihs.httpPort=80-acceptLicense./imcl install com.ibm.websphere.PLG.v85_8.5.5000.20130514_1044-repositories / tmp/was/SUPPL/-acceptLicense./imcl install com.ibm.websphere.WCT.v85_8.5.5000.20130514_1044-repositories / tmp/was/SUPPL/-acceptLicense
Create a mirror image based on the container
Docker commit centos
Check to see if there are any new images produced.
Docker images
Rename Mirror
Docker tag 239690b8d28c googlewell/was8.5:was
Or name it directly.
Docker commit 239690b8d28c googlewell/was8.5:was
Upload image
Docker push googlewell/was8.5:was
Run the newly generated image and map ports 80 and 9043 in the container to the host, because my server is not on record, so port 80 is not available. I map 9080. Mirror id is used here.
Docker run-itd-p 9043 name was 239690b8d28c-p 9080 name was 239690b8d28c / usr/sbin/init
If you use the name when running, you will be prompted that the local image cannot be found and check that the image does exist locally. This is because docker run cannot automatically use the latest version of the local image as latest. We can run it directly using the local tag. We can find that the tag of other images is latest, and our local setting is was.
Docker run-itd-p 9043 docker 9043-p 9080 name was googlewell/was8.5:was / usr/sbin/init "how to make a Websphere image of docker" ends here. Thank you for your reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.