Skip to main content
In this guide, you’ll configure the Universal Control Plane (UCP) client bundle on your local machine to interact with a UCP cluster through the Docker CLI.

1. Exploring the UCP Documentation

Start by reviewing the official Docker Engine Enterprise (EE) and UCP docs:
  1. Visit the Docker Engine Enterprise documentation.1
  2. Under Product Manuals, select Docker Enterprise.
  3. Click Universal Control PlaneAccess UCP.
  4. Follow the CLI-Based Access instructions to obtain the UCP client bundle.
With UCP, you continue using the Docker CLI by downloading a bundle that contains the necessary certificates and environment scripts.

2. Downloading the UCP Client Bundle

  1. In your UCP console dashboard, locate the Docker CLI section and click Download.
  2. Choose the Linux or macOS binary.
  3. Under My Profile (your admin user), download the client certificates ZIP.
The image shows a webpage from Docker documentation, detailing instructions for downloading and using the Docker CLI client. It includes navigation menus and highlighted sections for downloading client binaries.
Keep your client certificates secure. Do not commit them into version control.
Back in the UCP dashboard, click New Client Bundle to generate and download your personalized bundle. You should now have:
  • docker CLI binary
  • ucp-bundle-{username}.zip

3. Setting Up a Remote Client

For this example, we provisioned a CentOS host on AWS named Yogesh Client Bundle Test. Transfer both the Docker CLI binary and the UCP client bundle (e.g., via WinSCP), then:
Here’s an example public key from the bundle:
Your private keys and certificates grant full access to your UCP cluster. Handle them with care.

4. Configuring Environment Variables

Execute the provided environment script to set Docker CLI variables:
Verify your environment settings:

5. Verifying Connectivity

Ensure your CLI can communicate with UCP:
If both commands succeed, your Docker CLI is correctly configured to manage UCP.

6. Deploying a Test Application

Create a simple HTTP service on port 83:
Check the task status:
Visit http://<UCP_WORKER_IP>:83 in your browser. You should see the default Apache welcome page. The service also appears under Swarm in the UCP console.

7. Cleaning Up

Remove the test service:
Refresh the UCP console; the kodekloudtest service will be gone.

References

Watch Video