The first thing we need to do in order to pull our images from the private repository from Docker Hub
is create a secret with credentials for our private repository.
Otherwise Docker client on our communities, Walker notes, won't be able to authenticate with and pull
the images from our private repository.
So we need those credentials and creating that secret is pretty easy.
There is its own type for Docker Registry secret called Docker Registry, and we're going to create
that one there for data pieces we need in order to create that secret.
The first one is Docker.
Registry.
Server, and that is the server of our repository of Docker Hub and Patoka Hub, that's actually docker
dot io, pretty simple.
Then we have Docker user.
That is the Docker ID that you use for logging in into Docker Hub UI.
So I'm just going to write mine.
You have Docker email and DOCA password, which as I said, are credentials that you use to login in
here.
So Docker email and password.
So go ahead and set those two.
I have said all four variables.
So now we're going to create the secret using detailed command keeps.
It will create a secret and that's the secret type which is Docker Registry.
And he will write the name of the secret.
Let's call it my registry secret.
That's a new one.
And here we pass in those four values.
So first we have DOCA server, which I'm going to send to the variable that I created.
It's going to be Docker Registry.
Surber.
Then we have Dr. Username.
So I said all the values that it needs and using those four values keeps here will create a Docker registry
secret so we can execute this and the secret was created.
Now, we can use that to pull the images from the repository so we can also check that secret.
And there we go.
And here you see the type, which is Docker configuration.
That's its own type for a Docker registry secret.