Publishing container ports

The -p or –publish flags can be used to publish container ports to the outside world. For more information, you can refer to the Docker documentation.

You will need to publish TCP, SSL, and admin port to the outside world if you need to use them. The container ports are defined in the ctg.ini file inside the container.
docker run -d -v /home/user/cicscli:/var/cicscli -e LICENSE=accept -p <host-port>: \
<container-port> --name <container_name> ibm-cicstg-container-linux-x86:9.3
For example,
docker run -d -v /home/user/cicscli:/var/cicscli -r LICENSE=accept -p 2006:2006 \
-p 8051:8051 -p 2810:2810 --name <container_name> ibm-cicstg-container-linux-x86:9.3

The port mapping used in the example is explained in the following table.

Entry in the ctg.ini file Configured port in container Default port value in container Published port on host
adminport 2810 2810 2810
TCP port 2006 No default value 2006
SSL port 8051 No default value 8051