Starting, accessing, or closing the Docker containers
Start, access, or close the Docker containers by using the following commands.
Fix Pack 2 - GAStarting the Docker containers
Following is the command to start the Docker
containers:
docker container run -t -d -rm -e NODE_TYPE=<> -e DB_HOST=x.x.x.x
-e MDM_DB_NAME=<> -e DB_USER_NAME=<> -e DB_PASSWORD=<> -e DB_PORT=<> -e NEWUI_SVR_PORT=<>
-e MDM_APP_SVR_PORT=<> -e NEWUI_MAX_MEM=<> -e ES_CLUSTER_NAME=<> -e ES_CLUSTER_IP=<>
-e ES_HTTP_PORT=<> -e ES_TRANSPORT_PORT=<> -e PIMCOLLECTOR_URI=<> -e ES_USE_AUTH=<>
-e ES_PASSWORD_ENCRYPTED=<> -e ES_AUTH_USERNAME=<> -e ES_AUTH_PASSWORD==<> -e ES_AUTH_USERNAME=<>
-e MDM_SHARED_VOLUME_DIR=<> -e MDM_SHARED_VOLUME_DIR=<> -e INDEXER_MEMORY_FLAG=<>
-e MDM_APP_SVR_PORT=<> -e MDM_APPSVR_MEMORY_FLAG=<> -e MDM_EVENTPROCESSOR_MEMORY_FLAG=<>
-e MDM_QUEUEMANAGER_MEMORY_FLAG=<> -e MDM_ADMIN_MEMORY_FLAG=<> ENABLE_FTS=<> -e HAZELCAST_IP=<>
-e HAZELCAST_PORT=<> -e ENABLE_VENDOR=<> -e ENABLE_DAM=<> -e MONGODB_IP=<> -e MONGODB_PORT=<>
-e ENABLE_ML=<> -e ML_HOST=<> -e ML_PORT=<> -e MONGODB_DATABASE=<> -e MONGODB_USERNAME=<>
-e MONGODB_PASSWORD=<> --network=<> --name=<> -v <path> ipm-image_name:12.0.0
Where,
- - t means allocate a pseudo-TTY
- - d means run container in the background and print container ID
- - rm means automatically remove the container when it exits
- - e means set environment variables
- - p means publish the port of a container to the host
- --network means connect a container to a the network
- - v means volume of containers with the following probable values:
- /mnt/dockervol1/persona_logs:/opt/IBM/WebSphere/AppServer/profiles/AppSrv01/logs
- /mnt/dockervol1/admin_logs:/opt/IBM/WebSphere/AppServer/profiles/AppSrv01/logs
- /mnt/dockervol1/admin_logs:/opt/IBM/WebSphere/AppServer/profiles/AppSrv01/logs
- /mnt/dockervol1/admin_logs:/opt/IBM/WebSphere/AppServer/profiles/AppSrv01/logs
- /mnt/dockervol1/ipmsch_logs:/opt/mdmlogs /mnt/dockervol1/ipmwfl_logs:/opt/mdmlogs
- /mnt/dockervol1/ipmfts_logs:/opt/MDM/mdmui/logs
- /mnt/dockervol1/ipmfts_logs:/opt/MDM/mdmui/logs
- /mnt/dockervol1/ipm_share_vol:/opt/ipm_share_vol
- /mnt/dockervol1/ipmml_logs:/opt/MDM/mdmui/logs
Accessing the Docker containers
When your deployment is up and running, you can access your Docker containers to begin by using the Product Master application.
Proceed as follows to access the Docker containers:
- Run the Docker list command to get a list of all the Docker containers running in your
system:
docker container ls
- For remote access, attach to each Product Master Docker
container, as
needed.
docker exec –it <container name> /bin/bash
Closing the Docker containers
To stop and remove a Docker container, run the following command:
docker stop <container name>