
![[16.0.0.3 and later]](../ng_v16003.gif)
Deploying Liberty or Node.js servers in Docker containers with Admin Center
You can use the Deploy tool to install Liberty or Node.js servers in Docker containers as members of a collective.
Before you begin
- Create a Liberty collective that includes the hosts to which you plan to deploy the Docker container. See the Before you begin section of Deploying resources with Admin Center and the Configuring a Liberty collective topic.
- Complete steps 1-3 in Deploying Liberty Docker containers using deployment REST APIs. Step 1a provides example
Dockerfiles:
- For Liberty servers, use Example Dockerfile for a Liberty Network Deployment image.
- For Node.js servers, use Example Dockerfile for a Node.js member image.
- If you intend to deploy a Docker image that is stored in a registry, read information about importing the root certificate for the Docker registry to the collective keystore. You might want to import the root certificate before going to the Deploy tool because importing the root certificate requires that you stop and restart the controller.
About this task
After you define the Liberty collective and create the Docker image in a Docker container, use the Deploy tool to install the image on a Docker host within the collective.
Procedure
- Go to the Deploy tool.
- From the Toolbox, select
.
- From details on hosts in the Explore tool, select
> one_or_more_host_names > Deploy Server Package.
To directly launch the Deploy tool in the future, you can use the URL that is shown in the browser when viewing the Deploy tool.
- From the Toolbox, select
- Select a default server type.
- For Liberty servers, select Liberty for DEFAULT SERVER TYPES and then, under LIBERTY SERVER, select NEXT.
- For Node.js servers, select Node.js for DEFAULT SERVER TYPES and then, under NODE.JS SERVER, select NEXT.
- Select to install a Docker container.
- For DEFAULT RULES, select the Docker Container default rule.
- Under DOCKER CONTAINER, select NEXT.
- Under DOCKER CONTAINER, select CONFIRM.
- For Deployment Parameters, specify the Docker image to deploy, the
container name, and the cluster name. The tool displays images found in the Docker repository. You
can also search for images or type in the values.
To deploy a Docker image locally available on the Docker host, no additional configuration is required. Type in the Docker image name.
To deploy a Docker image that is stored in a registry, additional configuration is required for the collective controller to access the registry.- Import the root certificate for the Docker registry to the collective keystore.
- Export the GeoTrust Global CA root certificate from https://hub.docker.com.
- Stop the controller if it is running.
- Import the certificate into the collective keystore using the keytool
command; for
example:
keytool -import -file cert.docker.com -keystore path_to_controller_collectiveTrust.jks -storepass controller_keystore_password -alias any_unique_value
- Restart the controller.
- Add variable statements to the controller server.xml. See Configuring a Docker registry for use by a collective controller.
- Import the root certificate for the Docker registry to the collective keystore.
- For Selected Hosts, select the host computers on which to install the
image. If you do not see the wanted target host in the list of available hosts, you can search for a
host.
Each target host must be registered with the collective that is managed by Admin Center. See Registering host computers with a Liberty collective.
- For Security Details, specify a password to protect newly generated
keystore files that contain server authentication credentials.
The product generates keystore files in the resources directory of each deployed server.
- Select Deploy.
Results
The Deploy action runs. The Deploy tool displays messages about deployment status and results.


http://www14.software.ibm.com/webapp/wsbroker/redirect?version=cord&product=was-libcore-mp&topic=twlp_ui_deploy_docker
File name: twlp_ui_deploy_docker.html