Skip to content

Latest commit

 

History

History
executable file
·
44 lines (31 loc) · 2.04 KB

Run-install-image.md

File metadata and controls

executable file
·
44 lines (31 loc) · 2.04 KB

Running the IBM WebSphere Application Server Classic Base Install image

When the container is started using the IBM WebSphere Application Server Classic Base Install image, it executes the createProfileAndStartServer script which takes the following environment variables:

  • PROFILE_NAME(optional)[default 'AppSrv01']
  • CELL_NAME(optional)[default 'DefaultCell01']
  • NODE_NAME(optional)[default 'DefaultNode01']
  • HOST_NAME(optional)[default 'localhost']

Running the image using the default values

docker run --name <container-name> -h <container-name> -p 9060:9060 -p 9080:9080 -d <image-name>

Example:

docker run --name test -h test -p 9060:9060 -p 9080:9080 -d baseinstall

Running the image by passing values for the environment variables

docker run --name <container-name> -h <container-name> -e HOST_NAME=<container-name> -e PROFILE_NAME=<profile-name> -e CELL_NAME=<cell-name> -e NODE_NAME=<node-name> -p 9060:9060 -p 9080:9080 -d <image-name>                  

Example:

docker run --name test -h test -e HOST_NAME=test -e PROFILE_NAME=AppSrv02 -e CELL_NAME=DefaultCell02 -e NODE_NAME=DefaultNode02 -p 9060:9060 -p 9080:9080 -d baseinstall

Checking the logs

docker logs -f --tail=all <container-name>

Example:

docker logs -f --tail=all test