When the container is started using the IBM WebSphere Application Server Classic for Developers 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']
docker run --name <container-name> -h <container-name> -p 9060:9060 -p 9080:9080 -d <profile-image-name>
Example:
docker run --name test -h test -p 9060:9060 -p 9080:9080 -d devprofile
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 <profile-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 devprofile
docker logs -f --tail=all <container-name>
Example:
docker logs -f --tail=all test