Install WebSphere in a Docker container
Record the steps for installing webshpere In the Docker container, provided that docker has been installed and can be used properly.
(1) install websphere with docker
1. Get the image: docker pull ibmcom/websphere-traditional: 8.5.5.12-profile
Docker pull # is the command to pull the image down, followed by the image name and image version information
Ibmcom/websphere-traditional # websphere image name
8.5.5.12-profile # The image version, that is, the websphere version
2. use an image to generate a container and start the container: docker run -- name websphere-h test-e UPDATE_HOSTNAME = true-p 9043: 9043-p 9443: 9443-d ibmcom/websphere-traditional: 8.5.5.12-profile
Docker run # command for starting the container, followed by various parameters + container Image Information
-- Name websphere # specify the container name to be started as websphere
-E UPDATE_HOSTNAME = true # this parameter is required when the ip address used to access websphere is not localhost.
-P 9043: 9043 # specify the access port number
-D ibmcom/websphere-traditional: 8.5.5.12-profile # The container generated by the image is running in the background.
3. Generate the logon PASSWORD: docker exec websphere cat/tmp/PASSWORD
Docker exec # enter the container and access the container
Websphere # container name
Cat/tmp/PASSWORD # output the content in the/tmp/PASSWORD file in the container. The output content of this command is the login PASSWORD.
4. generate a new container for user access:
Docker run -- name test-h test-v $ (pwd)/PASSWORD:/tmp/PASSWORD-p 9045: 9043-p 9445: 9443-d ibmcom/websphere-traditional: 8.5.5.12-profile
Docker run # Start a new container
-V $ (pwd)/PASSWORD:/tmp/PASSWORD # mount the currently generated logon PASSWORD to the/tmp/PASSWORD directory in the container
5. Access websphere: https: // 172.150.13.40: 9043/ibm/console/login. do? Action = secure
172.150.13.40 # IP address of the current Virtual Machine (different for everyone)
9043 # Set the port number for accessing websphere
6. If no error occurs in the previous step, the following logon page will be displayed:
7. Logon account and password
Account: wsadmin
PASSWORD: 1 + aIMDow (that is, the content output by using the docker exec websphere cat/tmp/PASSWORD Command earlier, different for everyone)
The installation is complete and can be used directly.
For more Docker tutorials, see the following:
Docker installation application (CentOS 6.5_x64) https://www.bkjia.com/Linux/2014-07/104595.htm
Configuration on Ubuntu 16.04 server using Docker https://www.bkjia.com/Linux/2017-06/145176.htm
Install Docker https://www.bkjia.com/Linux/2015-07/120444.htm in Ubuntu 15.04
Docker installation instance https://www.bkjia.com/Linux/2017-04/142666.htm
Docker create basic image https://www.bkjia.com/Linux/2017-05/144112.htm
How to install Docker and basic usage https://www.bkjia.com/Linux/2015-09/122885.htm on Ubuntu 15.04
Docker Use note https://www.bkjia.com/Linux/2016-12/138490.htm on Ubuntu 16.04
Use Docker to start https://www.bkjia.com/Linux/2017-04/142649.htm of frequently used applications in minutes
Ubuntu 16.04 Docker modify configuration file does not take effect solution https://www.bkjia.com/Linux/2017-05/143862.htm
Docker details: click here
Docker: click here
This article permanently updates link: https://www.bkjia.com/Linux/2018-03/151153.htm