- [Instructor] Picture this.
What if you had 100 developers all working locally
on their laptop or desktop computer?
They're all creating containers
and they need access to actually deploy those containers
or run those containers on your Docker swarm cluster
and they should be able to do it
through the universal control plane.
UCP client bundles makes all of this easy and possible.
Let me show you how.
Here in UCP, if a user goes up into their profile,
the very first option here at the top is Client Bundles.
So what you wanna do first is to generate a client bundle.
And it just takes a second
and it automatically downloads the zip file
that you see down here at the bottom.
In this case, it's called ucp-bundle-David.zip,
which is based on my user name which is David.
So, we now have this client bundle created.
Now, if your developers don't already
have the Docker Client, they're gonna
wanna download Docker CLI right here.
As you can see, Docker CLI is available for Linux, or MacOS,
Windows Command Line, and also Windows Powershell.
So, you have a number of different options,
or platforms, to run the Docker Client on
once you have your client certificate bundle.
In our case, we already have the Docker Client
for MacOS installed and running, which is very easy to do.
And now, we're going to use this client bundle
that we generated and downloaded
with the Docker Client for Mac.
I'm here at the command prompt
for my local MacOS X operating system.
If I do a Docker version, as you can see,
I already have the Docker Client installed.
And in fact, I have a local Docker server
also running on my Mac.
What I wanna configure with the client bundle is
so that my client, my local client, will talk
to the Docker's forum cluster and it will go through UCP.
It will authenticate, and everything that I did locally,
I can then run over on the Docker's forum cluster.
So, If I cd into this folder called Documents
and then Docker, I'll do an LS minus L,
and you can see the UCP bundle David
that I downloaded, I unzipped,
and I placed into this folder.
So, if we cd into the UCP bundle David and do an LS,
you can see there are a number of files
that were created here from the zip
that we downloaded and extracted.
What's important to note is that the security certificates
that allow you to access UCP are included in this bundle.
Now, the Docker documentation tells us that all we have
to do here is to type eval, double quote, dollar sign,
left parenthesis, left greater than,
env.sh, and then close all of that out
to put this into our environment.
What we're actually running is this environment dot sh,
which primarily exports these variables
to connect us to the Docker host and
to use the security certificates that we have downloaded.
Now, once we run that, if we run this command,
which I'll paste in from the Docker documentation,
it tells us we're talking to UCP version 3.0.4.
And let me clear the screen,
and now let's do a Docker version
and we get a lot more information here.
You can see it goes on pretty far.
But the most important thing to note is that we're talking
to Docker Enterprise Edition version 2.0.
You can see the version of the Docker server there.
You can see the version
of the Universal Control Plane, 3.0.4.
So, we are indeed talking to UCP.
And now, if I were to run a container,
it would actually run over in the UCP cluster.
In fact, let's give it a try.
I'm going to do a Docker run, and we'll just run nginx.
Let's actually give it a name,
and let's call it remote-test-1.
All right, let's do a Docker ps.
And even though we're locally on our Mac,
look at the container list.
This is Docker trusted registry,
and indeed at the top, we have our remote-test-1 container.
Let's go back to UCP.
And here in UCP if we go into the shared resources
and into containers, take a look
at this very first container right here.
It is called remote-test-1, and it was actually run using
the Docker CLI off of my local Mac desktop.
And yes, now it's running.
It's managed by UCP and it's running
on a Docker node in the cluster.
You can find more information on using client certificates,
as they call it, which is really the client bundles.
It shows you how to configure it here,
how to download the Docker CLI,
and then also how to download the client bundles,
as well as the commands that I performed
in the demonstration.