1
00:00:00,240 --> 00:00:06,390
The first thing we need to do in order to pull our images from the private repository from Docker Hub

2
00:00:06,690 --> 00:00:11,520
is create a secret with credentials for our private repository.

3
00:00:11,760 --> 00:00:19,590
Otherwise Docker client on our communities, Walker notes, won't be able to authenticate with and pull

4
00:00:19,590 --> 00:00:22,910
the images from our private repository.

5
00:00:23,070 --> 00:00:28,220
So we need those credentials and creating that secret is pretty easy.

6
00:00:28,860 --> 00:00:35,940
There is its own type for Docker Registry secret called Docker Registry, and we're going to create

7
00:00:35,940 --> 00:00:41,280
that one there for data pieces we need in order to create that secret.

8
00:00:41,580 --> 00:00:43,800
The first one is Docker.

9
00:00:45,180 --> 00:00:46,050
Registry.

10
00:00:48,470 --> 00:00:58,790
Server, and that is the server of our repository of Docker Hub and Patoka Hub, that's actually docker

11
00:00:58,790 --> 00:01:00,100
dot io, pretty simple.

12
00:01:00,680 --> 00:01:03,260
Then we have Docker user.

13
00:01:03,920 --> 00:01:10,670
That is the Docker ID that you use for logging in into Docker Hub UI.

14
00:01:11,870 --> 00:01:13,340
So I'm just going to write mine.

15
00:01:14,150 --> 00:01:24,040
You have Docker email and DOCA password, which as I said, are credentials that you use to login in

16
00:01:24,140 --> 00:01:24,430
here.

17
00:01:25,100 --> 00:01:27,510
So Docker email and password.

18
00:01:28,040 --> 00:01:29,900
So go ahead and set those two.

19
00:01:30,200 --> 00:01:32,470
I have said all four variables.

20
00:01:32,480 --> 00:01:37,400
So now we're going to create the secret using detailed command keeps.

21
00:01:37,400 --> 00:01:42,910
It will create a secret and that's the secret type which is Docker Registry.

22
00:01:44,330 --> 00:01:46,450
And he will write the name of the secret.

23
00:01:46,460 --> 00:01:50,480
Let's call it my registry secret.

24
00:01:54,620 --> 00:01:55,510
That's a new one.

25
00:01:56,000 --> 00:01:59,210
And here we pass in those four values.

26
00:01:59,490 --> 00:02:05,300
So first we have DOCA server, which I'm going to send to the variable that I created.

27
00:02:05,510 --> 00:02:07,640
It's going to be Docker Registry.

28
00:02:09,820 --> 00:02:10,480
Surber.

29
00:02:15,530 --> 00:02:19,610
Then we have Dr. Username.

30
00:02:24,340 --> 00:02:33,190
So I said all the values that it needs and using those four values keeps here will create a Docker registry

31
00:02:33,190 --> 00:02:38,160
secret so we can execute this and the secret was created.

32
00:02:38,710 --> 00:02:46,480
Now, we can use that to pull the images from the repository so we can also check that secret.

33
00:02:48,430 --> 00:02:49,400
And there we go.

34
00:02:50,080 --> 00:02:54,040
And here you see the type, which is Docker configuration.

35
00:02:54,290 --> 00:02:57,340
That's its own type for a Docker registry secret.
