Docker Webshpere
Step 1 docker websphere
1. docker pull ibmcom/websphere-traditional:8.5.5.12-profile
2. 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
3. docker exec websphere cat /tmp/PASSWORD
4. 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
5.websphere? https://172.10.21.30:9043/ibm/console/login.do?action=secure
Install image
The ibmcom/websphere-traditional:install Docker image contains IBM WebSphere Application Server traditional for Developers and can be started by:
1.Running the image using default values:docker run –name test -h test -p 9043:9043 -p 9443:9443 -d \
ibmcom/websphere-traditional:install
2.Running the image by passing values for the environment variables:docker run –name test -h test -e HOST_NAME=test -p 9043:9043 -p 9443:9443 -d \
-e PROFILE_NAME=AppSrv02 -e CELL_NAME=DefaultCell02 -e NODE_NAME=DefaultNode02 \
ibmcom/websphere-traditional:install
•PROFILE_NAME (optional, default is ‘AppSrv01’)
•CELL_NAME (optional, default is ‘DefaultCell01’)
•NODE_NAME (optional, default is ‘DefaultNode01’)
•HOST_NAME (optional, default is ‘localhost’)
Profile image
The ibmcom/websphere-traditional:profile Docker image contains IBM WebSphere Application Server traditional for Developers with the profile already created and can be started by:
1.Running the image using default values:docker run –name test -h test -p 9043:9043 -p 9443:9443 -d \
ibmcom/websphere-traditional:profile
2.Running the image by passing values for the environment variables:docker run –name test -h test -e UPDATE_HOSTNAME=true -p 9043:9043 -p 9443:9443 -d \
ibmcom/websphere-traditional:profile
•UPDATE_HOSTNAME (optional, set to ‘true’ if the hostname should be updated from the default of ‘localhost’ to match the hostname allocated at runtime)
Admin console
In both cases a secure profile is created with an admin user ID of wsadmin and a generated password. The generated password can be retrieved from the container using the following command:
docker exec test cat /tmp/PASSWORD
It is also possible to specify a password when the container is run by mounting a file containing the password to /tmp/PASSWORD. For example:
docker run –name test -h test -v $(pwd)/PASSWORD:/tmp/PASSWORD \
-p 9043:9043 -p 9443:9443 -d ibmcom/websphere-traditional:install
Once the server has started, you can access the admin console at https://localhost:9043/ibm/console/login.do?action=secure. If you are running in Docker Toolbox, use the value returned by docker-machine ip instead of localhost.
Recent Comments