Skip to content

Latest commit

 

History

History
executable file
·
41 lines (30 loc) · 1.98 KB

Run-profile-image.md

File metadata and controls

executable file
·
41 lines (30 loc) · 1.98 KB

Running the IBM WebSphere Application Server Classic Base Profile image

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

  • UPDATE_HOSTNAME(optional, set to 'true' if the hostname should be updated from the default of 'localhost')
  • PROFILE_NAME(optional) [default 'AppSrv01']
  • NODE_NAME(optional)[default 'DefaultNode01']

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 baseprofile

Running the image by passing values for the environment variables

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

Example:

docker run --name test -h test -e UPDATE_HOSTNAME=true -e PROFILE_NAME=AppSrv02 -e NODE_NAME=DefaultNode02 -p 9060:9060 -p 9080:9080 -d baseprofile 

Checking the logs

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

Example:

docker logs -f --tail=all test