9 videos 📅 2024-12-16 09:00:00 Asia/Brunei
2:25:36
2024-12-16 09:21:57
2:03:59
2024-12-16 11:06:33
1:46:52
2024-12-16 13:50:28
1:56:02
2024-12-17 09:35:43
1:52:29
2024-12-17 09:39:32
1:51:17
2024-12-17 13:36:38
1:35:13
2024-12-18 08:59:20
23:23
2024-12-18 11:50:59
1:47:49
2024-12-18 13:41:04

Visit the Docker and Kubernetes Training Course course recordings page

United Arab Emirates - Docker and Kubernetes on AWS

                WEBVTT

00:00:00.580 --> 00:00:01.540
Okay, good.

00:00:05.880 --> 00:00:06.280
Does

00:00:11.220 --> 00:00:12.660
any any questions.

00:00:15.880 --> 00:00:20.520
So can you do a control see control see spelling is wrong.

00:00:20.700 --> 00:00:24.080
You see spelling is wrong. It is D. O. C. A.

00:00:24.080 --> 00:00:26.880
Spell check type over.

00:00:29.920 --> 00:00:31.680
That is

00:00:36.480 --> 00:00:39.540
CK and after K is

00:00:39.540 --> 00:00:43.940
E. R. Do a control C. Do a control C.

00:00:44.540 --> 00:00:46.880
I can't see

00:00:48.260 --> 00:00:49.020
good.

00:00:52.600 --> 00:00:54.260
Others any questions.

00:01:00.440 --> 00:01:01.960
So now

00:01:01.960 --> 00:01:05.180
docker and press enter.

00:01:06.700 --> 00:01:10.940
Docker and press enter you get lots of commands to see the commands.

00:01:10.940 --> 00:01:13.160
Docker and press enter.

00:01:16.980 --> 00:01:20.800
If you want to run any command with the help

00:01:20.800 --> 00:01:23.720
you can see what are the options.

00:01:25.400 --> 00:01:30.960
So example you want to know what is docker run. You can say docker run

00:01:30.960 --> 00:01:33.640
and space hyphen hyphen help.

00:01:34.540 --> 00:01:38.980
Let's you know what is this command and how to use

00:01:38.980 --> 00:01:40.120
the command.

00:01:44.720 --> 00:01:48.900
So use any command see how to browse or

00:01:48.900 --> 00:01:53.120
look into the help options. So every command we have a help.

00:01:54.360 --> 00:01:58.840
And using these options you can work to create

00:01:59.500 --> 00:02:00.140
containers.

00:02:03.800 --> 00:02:08.440
So every command you want to know what is for images what are docker images.

00:02:08.480 --> 00:02:12.960
For example you can say docker space images

00:02:12.960 --> 00:02:17.800
hyphen hyphen help. And let's you know this is for to list the images.

00:02:19.340 --> 00:02:24.300
You can use these commands docker image list docker image list docker images.

00:02:24.300 --> 00:02:27.800
And these are the options.

00:02:29.180 --> 00:02:32.580
Let's run one more command. Type in docker space info.

00:02:34.800 --> 00:02:36.320
Press enter.

00:02:39.940 --> 00:02:44.160
Observe the output. So docker info

00:02:44.160 --> 00:02:46.520
gives you a client portion.

00:02:48.160 --> 00:02:50.700
And this is your server portion.

00:02:52.040 --> 00:02:56.280
It says what is running the containers the version the logs

00:02:57.800 --> 00:03:01.840
architecture all the information about your host network

00:03:01.840 --> 00:03:06.840
logs form. And you see the directory of docker

00:03:06.840 --> 00:03:10.120
the configuration the 1gb of the server.

00:03:10.120 --> 00:03:12.620
Let's go to this location.

00:03:18.580 --> 00:03:20.120
var lib docker

00:03:22.620 --> 00:03:24.700
and press enter.

00:03:25.440 --> 00:03:30.000
And do ls. So this is where you can see all your configuration files.

00:03:31.180 --> 00:03:32.720
Run this command.

00:03:35.720 --> 00:03:38.520
Run the command of docker to see

00:03:38.520 --> 00:03:41.600
all the docker commands. You can use the help.

00:03:42.780 --> 00:03:46.820
You can see docker info using which you can find in the complete

00:03:46.820 --> 00:03:51.500
details about the client and server components. And under var lib docker

00:03:51.500 --> 00:03:54.460
you can see all your docker configuration files.

00:03:55.660 --> 00:03:59.140
So if you download any image it will go to this location.

00:03:59.840 --> 00:04:03.440
Any volume will go to this location in default. Any questions team?

00:04:04.000 --> 00:04:07.260
Now let's do a lab.

00:04:08.380 --> 00:04:13.580
In module 1 labs. We are going to lab 2.

00:04:13.860 --> 00:04:19.820
In which we are going to work with. We are going to create container full images.

00:04:22.080 --> 00:04:25.700
So let's explain this lab. First we will pull in the image

00:04:25.700 --> 00:04:28.960
of docker enginex. We will observe how it pulls.

00:04:30.720 --> 00:04:34.180
And then we will list the images which is pulled by your docker images.

00:04:36.180 --> 00:04:38.540
And then we create a container from it.

00:04:38.740 --> 00:04:45.180
We observe the images got created by using dockerv as a docker container list

00:04:45.180 --> 00:04:46.740
to see whether the container got created.

00:04:48.200 --> 00:04:53.840
I might want to see the IP address so I can do inspect the IP ID or I want to

00:04:53.840 --> 00:04:56.960
grab the information so I can get the IP address just to browse.

00:04:57.740 --> 00:05:03.420
So containers get the IP addresses because containers also need to be part of a network

00:05:03.420 --> 00:05:08.520
for communication across multiple containers. Then we will try to log in the container

00:05:08.520 --> 00:05:13.900
by using docker exit command. Exit hyphen IP the container ID and the name

00:05:13.900 --> 00:05:17.680
or you can use container name. And then create some file.

00:05:18.180 --> 00:05:21.080
Consider you are a developer or a tester. You try to create some file.

00:05:22.720 --> 00:05:28.080
And observe the files got created. Then it's a good practice to do a control PQ to exit.

00:05:28.180 --> 00:05:33.120
Don't type in exit. You want to come back to the host. Control PQ will be back to the host.

00:05:34.440 --> 00:05:38.460
You can stop the container. So you cannot run docker command into the container

00:05:38.460 --> 00:05:43.120
that will be on the host. You can stop it and see what happens. You cannot log in.

00:05:43.940 --> 00:05:47.720
You again start it. Log in and check whether you have the file.

00:05:49.080 --> 00:05:52.760
If you want you want to put some contents into it. So you can install BIM editor.

00:05:52.920 --> 00:05:56.860
And then try to put some text into it.

00:05:58.200 --> 00:06:01.520
So the first part is all about how you create images.

00:06:02.260 --> 00:06:05.700
How do you see the images? How do we log create a container?

00:06:06.520 --> 00:06:10.100
How do you log in the container? How we can create some files?

00:06:10.520 --> 00:06:14.780
And how you can do some basic operations in a container is the first part.

00:06:16.240 --> 00:06:19.960
Are we good? The first part everyone? The flow? Let's start.

00:06:19.960 --> 00:06:24.960
So, clear. First command docker

00:06:28.260 --> 00:06:29.860
full indynext.

00:06:31.200 --> 00:06:35.300
Now this command, this will go ahead and download the latest version

00:06:35.300 --> 00:06:37.040
of indynext from docker hub.

00:06:53.100 --> 00:06:55.420
Good. Good.

00:06:55.560 --> 00:06:57.360
Charles you're good. Everyone are we good?

00:06:58.700 --> 00:07:03.940
So now what I do is I would say docker

00:07:03.940 --> 00:07:09.600
images. So this will show you the repository from which you created.

00:07:11.000 --> 00:07:14.480
Yeah. Question. Tag name. Image ID.

00:07:14.480 --> 00:07:19.540
And this image was updated two weeks back in docker hub by docker.

00:07:21.620 --> 00:07:24.740
The next step to create a container from

00:07:24.740 --> 00:07:29.320
here. So I'd say the different options. So I'd say docker run

00:07:29.320 --> 00:07:33.580
hyphen d and the report name.

00:07:34.620 --> 00:07:39.320
And colon the tag name. This is optional. Tag name is optional. The latest one you can also skip it.

00:07:39.320 --> 00:07:44.580
Or you can type it like this. Now press enter.

00:07:45.200 --> 00:07:48.400
Okay. Create a container now everyone.

00:07:48.800 --> 00:07:53.520
Docker run is there. Docker run hyphen d space

00:07:54.320 --> 00:07:55.440
indynext colon latest.

00:07:58.780 --> 00:07:59.460
Okay good.

00:08:01.200 --> 00:08:03.460
You're good. Charles

00:08:05.080 --> 00:08:08.340
You're good. Let me see your charge. Charles what's happening?

00:08:09.140 --> 00:08:13.800
Do a control c. Do a control c. Do a control c. Yeah.

00:08:13.820 --> 00:08:17.260
One second. Yeah. One second. What did you do with the previous command?

00:08:18.700 --> 00:08:21.940
You have to use. Yes. Yes. You're good.

00:08:22.720 --> 00:08:26.200
The charge is good. Next is

00:08:26.940 --> 00:08:31.360
What's happening? Whose screen is this? CK.

00:08:31.680 --> 00:08:33.980
Any questions? I think you're lagging. Okay.

00:08:37.200 --> 00:08:42.140
So now let's proceed. So now it's created. So now how do I check it?

00:08:42.220 --> 00:08:47.000
I can do a docker ps. And you see it could create a container.

00:08:47.000 --> 00:08:50.800
So the container id. And this is your container name.

00:08:52.620 --> 00:08:57.060
And this is the image from which you created. And what command went inside

00:08:57.060 --> 00:09:00.300
and the time. And you can also use docker ps

00:09:01.700 --> 00:09:07.040
hyphen a sometimes if you want to see all the containers. Docker ps will show only running containers.

00:09:08.580 --> 00:09:11.880
Ps have a name which will show all the containers. Stopped running containers.

00:09:11.880 --> 00:09:16.740
Okay. This is one method to create a container. So now let's see how to log into it.

00:09:16.840 --> 00:09:22.200
Logging onto it.

00:09:24.000 --> 00:09:24.960
Docker exec

00:09:27.060 --> 00:09:31.880
hyphen ip. The container id or the name.

00:09:36.940 --> 00:09:40.780
And paste it. And then you can mention the shell.

00:09:42.700 --> 00:09:44.780
So the next we use different shells. Bash.

00:09:46.000 --> 00:09:47.040
Other shells.

00:09:49.780 --> 00:09:55.220
And now inside the container you can see that it is your hostname of the container.

00:09:55.880 --> 00:10:00.880
Now how do you confirm that this is your container? So this must have all the

00:10:00.880 --> 00:10:06.260
application files. So you can explore. So you can use the find command for example.

00:10:07.020 --> 00:10:10.140
In Linux. Find. This is an observation.

00:10:10.780 --> 00:10:14.280
And I can say I want to find the container files. I do a find.

00:10:15.140 --> 00:10:18.380
You see that I am able to see the container files. Some files cannot be teased.

00:10:19.300 --> 00:10:24.160
Can I see other files? For example I might want to work on index.html.

00:10:25.100 --> 00:10:30.120
And it is there. You see that whatever your application

00:10:30.120 --> 00:10:35.140
you require is already available. So now you understand that container

00:10:35.140 --> 00:10:38.300
is properly created for you. So you have to go and find.

00:10:39.940 --> 00:10:45.480
So now can I write something? So I can write something. I am able to do a

00:10:45.480 --> 00:10:50.160
file. And I can see the file in here.

00:10:52.180 --> 00:10:53.940
Can I make some changes?

00:10:55.460 --> 00:10:57.540
So I can use ability update.

00:10:59.420 --> 00:11:03.220
So whenever you want to install anything in a container first you update.

00:11:05.440 --> 00:11:10.160
And now I want to install WimEditor for example. I say install WimEditor.

00:11:13.420 --> 00:11:15.800
Edited for modifying your data.

00:11:15.800 --> 00:11:18.700
And you would install.

00:11:20.580 --> 00:11:23.360
So I can open the same file. I am writing something.

00:11:23.800 --> 00:11:28.900
And then you can see the text. Just play around.

00:11:32.060 --> 00:11:35.080
So play around what you want to do in a container. You can do any of your operations.

00:11:35.800 --> 00:11:40.240
So I just create a small file. And I put some contents into it.

00:11:42.080 --> 00:11:45.480
Play around in the container. What I want to do.

00:11:45.680 --> 00:11:49.780
Create a file. Try to put in some text into it.

00:11:50.560 --> 00:11:52.700
We all know how to use WimEditor.

00:11:54.360 --> 00:11:55.840
Do we know how to use edited tools?

00:11:58.260 --> 00:11:58.580
Anyone?

00:12:04.160 --> 00:12:05.760
Any questions?

00:12:14.540 --> 00:12:14.760
Any questions?

00:12:16.100 --> 00:12:18.700
Yeah. So press I.

00:12:19.080 --> 00:12:22.860
June press I. Press I on your laptop. Yes.

00:12:24.920 --> 00:12:27.740
Now press escape. Others please observe.

00:12:28.060 --> 00:12:32.720
I want to save this file. Press escape on your laptop.

00:12:33.420 --> 00:12:34.060
Poland.

00:12:39.240 --> 00:12:41.100
Quicker. Escape button.

00:12:42.940 --> 00:12:43.860
First press escape.

00:12:43.860 --> 00:12:47.880
Poland WQ. Are you with me?

00:12:48.500 --> 00:12:52.260
So do a cat command. Do a cat.

00:12:54.200 --> 00:12:55.700
Cat and the file name.

00:12:57.480 --> 00:12:59.660
Do a cat.

00:13:00.720 --> 00:13:05.060
No no you are doing something wrong.

00:13:05.060 --> 00:13:08.460
Okay type the file name space.

00:13:09.860 --> 00:13:14.340
Example.txt. Enter. No no you are doing something wrong.

00:13:14.740 --> 00:13:18.660
Can type an exit here. Press colon.

00:13:19.740 --> 00:13:23.140
Yes. Now again can you log in. Log in to your server.

00:13:24.020 --> 00:13:25.380
Can you do a sudo su-?

00:13:29.740 --> 00:13:30.700
sudo su-

00:13:30.700 --> 00:13:32.640
sudo su-

00:13:32.640 --> 00:13:36.520
type in docker and press enter.

00:13:40.100 --> 00:13:44.180
So now can you do a

00:13:45.340 --> 00:13:48.840
docker ps. I am not sure why I am adding those.

00:13:48.840 --> 00:13:53.180
Remove those additional characters. Remove those.

00:13:53.540 --> 00:13:58.640
Use a backspace. Type in docker ps. No no hyphen.

00:13:59.540 --> 00:14:02.480
Now type in docker

00:14:04.800 --> 00:14:05.620
exec.

00:14:08.800 --> 00:14:10.340
C. C for charge.

00:14:10.340 --> 00:14:14.880
space hyphen it hyphen it. T for tango.

00:14:15.040 --> 00:14:17.040
T for tango.

00:14:21.300 --> 00:14:22.180
Yes space.

00:14:24.100 --> 00:14:27.800
Copy the container name or the id. You are not copying properly. You are missing it.

00:14:27.920 --> 00:14:30.260
Right click slowly. I tell you how to copy it. One second.

00:14:30.260 --> 00:14:35.060
One second. Yes. Highlight on it. No no no.

00:14:35.220 --> 00:14:39.800
Slowly please. So can you highlight on your container

00:14:39.800 --> 00:14:44.300
id below that. Now what you do now is below the container id

00:14:46.100 --> 00:14:47.380
space space.

00:14:48.560 --> 00:14:54.900
B-A-S-H. Enter. Now type in clear.

00:14:54.900 --> 00:15:00.160
Please type clear. Now type in vi

00:15:00.160 --> 00:15:04.400
vi v for victor i space

00:15:07.100 --> 00:15:10.060
example.txt. Enter. Press enter.

00:15:10.320 --> 00:15:15.060
Press i. So have you used editor tool before? Do you follow up? So what you do is come out

00:15:15.060 --> 00:15:18.660
of this. Let's make it simple. Escape colon wq.

00:15:19.800 --> 00:15:23.180
Escape colon wq. Or just press q.

00:15:23.860 --> 00:15:27.560
Escape colon. You are not sure. I think you are not able to use those options.

00:15:28.800 --> 00:15:32.780
Press escape button. Escape. Yes.

00:15:33.060 --> 00:15:37.120
Escape colon. Escape colon. You have to do it faster.

00:15:38.720 --> 00:15:42.400
That's fine. So make it simple. Do a touch. Log in the container now.

00:15:42.400 --> 00:15:47.000
Again. Use the apparrows. Use the apparrows.

00:15:47.180 --> 00:15:52.240
In your prompt. I think you are not

00:15:52.240 --> 00:15:55.200
sure what you are doing. Others are able to do it.

00:15:59.920 --> 00:16:01.200
Who is speaking now?

00:16:02.000 --> 00:16:04.300
Do a control c. Type in clear.

00:16:04.300 --> 00:16:08.160
Type in clear. Yes. Now what I am going to do? Do a APT space update.

00:16:08.900 --> 00:16:14.160
This is command given document. Next you say APT. What I am going to do?

00:16:14.240 --> 00:16:17.520
You can either use APT or APT help and get. Both are same.

00:16:19.680 --> 00:16:24.300
APT space. Install. Type in install

00:16:25.560 --> 00:16:29.300
space vim. Now you can say vim

00:16:29.300 --> 00:16:32.060
space example dot.

00:16:34.120 --> 00:16:38.200
Enter. I press I.

00:16:39.120 --> 00:16:40.740
Type in some content.

00:16:43.180 --> 00:16:49.220
Escape colon wq. Escape. So team to save the file once you enter it you have to use

00:16:49.220 --> 00:16:54.560
escape colon wq and press enter.

00:16:54.560 --> 00:16:59.540
Type whatever you want. Press escape then colon

00:16:59.540 --> 00:17:03.140
wq to save and quit.

00:17:04.560 --> 00:17:06.780
Can you make it small or something?

00:17:07.260 --> 00:17:13.700
Do you have control now? I don't think you can do it.

00:17:16.300 --> 00:17:17.660
The terminal.

00:17:19.120 --> 00:17:22.220
I need to get access to your session.

00:17:23.860 --> 00:17:28.420
I am not sure how does it work for your machine inside this.

00:17:29.140 --> 00:17:33.200
Option to control in here. I will show you once more. Please observe.

00:17:33.740 --> 00:17:36.160
Yes. Do a cat. Yes.

00:17:37.480 --> 00:17:42.200
Let me show you again. Please observe my screen. I am going to do it.

00:17:42.200 --> 00:17:46.900
See for example if you want a file I have to use.

00:17:47.340 --> 00:17:52.440
Okay. I go inside. You want to write something. I press

00:17:52.440 --> 00:17:57.100
I. You see insert mode. Now I can

00:17:57.100 --> 00:18:02.440
I can make some changes. Everyone please observe. I press I. I make

00:18:02.440 --> 00:18:07.200
some changes. So now I want this file to be saved.

00:18:08.040 --> 00:18:11.900
And I want to be out of this file. So I press escape.

00:18:13.460 --> 00:18:16.980
The I would go insert go away. And then you press colon

00:18:18.660 --> 00:18:21.260
wq and press enter.

00:18:22.920 --> 00:18:26.860
Play around. This is useful for the Kubernetes audience to know this.

00:18:27.240 --> 00:18:32.040
It's not quite difficult for the Kubernetes labs also. So put in a file.

00:18:32.040 --> 00:18:36.260
Make changes. We are going to I.

00:18:37.140 --> 00:18:42.320
Once you are done press escape. The I will go away. Then press

00:18:42.320 --> 00:18:45.680
colon wq and press enter.

00:18:46.880 --> 00:18:52.160
See the file. Do a cat. And the file name. You will see the file contents.

00:18:52.560 --> 00:18:56.200
Okay. Let's see how many are good in here. Are we good?

00:18:57.120 --> 00:19:00.200
Yes June. Yes.

00:19:00.700 --> 00:19:01.500
Okay.

00:19:03.920 --> 00:19:06.660
Apd space update.

00:19:07.320 --> 00:19:08.360
Apd space update.

00:19:12.280 --> 00:19:15.720
Install them. Apd hyphen get install them.

00:19:16.920 --> 00:19:19.640
You can give a different name. That's fine.

00:19:19.640 --> 00:19:23.020
Forget the same name. Give some other name. I think we missed it before.

00:19:24.540 --> 00:19:27.400
Test or something. Some other name. Test or whatever you want.

00:19:29.660 --> 00:19:31.860
Press I. Put some content.

00:19:34.160 --> 00:19:35.280
Do something.

00:19:38.160 --> 00:19:41.200
Press escape. On your laptop.

00:19:41.800 --> 00:19:46.260
On your laptop. In this case colon shift and semicolon.

00:19:46.380 --> 00:19:51.540
Yeah. W q. Q q. Press enter again.

00:19:51.960 --> 00:19:55.620
Press enter. Escape colon w q.

00:19:56.120 --> 00:19:59.120
Now do a cat and the file name.

00:20:00.320 --> 00:20:04.540
Do a cat and the file name. Cat cat.

00:20:04.540 --> 00:20:08.320
Cat cat. Use a tab. It's a Linux box.

00:20:09.720 --> 00:20:12.700
Enter. Are we good? Okay.

00:20:14.760 --> 00:20:16.420
Charles. Okay. You're good.

00:20:20.300 --> 00:20:22.840
Colons shift and semicolon button.

00:20:24.100 --> 00:20:25.900
Shift and semicolon button on your laptop.

00:20:25.900 --> 00:20:29.940
Shift and semicolon. Your button. Yeah. W q.

00:20:31.700 --> 00:20:35.740
W. Type in w. Q. Q for create quick.

00:20:36.120 --> 00:20:40.420
Enter. Enter. Yes. Yeah. Now do a cat.

00:20:40.780 --> 00:20:43.300
Do a cat and the file name.

00:20:44.040 --> 00:20:44.540
Okay.

00:20:48.620 --> 00:20:51.620
Please be comfortable on these commands.

00:20:52.620 --> 00:20:55.960
Okay. Last one. Let's see for.

00:20:56.620 --> 00:20:57.400
What's happening.

00:20:59.640 --> 00:21:01.640
Whose screen is this? CK?

00:21:02.960 --> 00:21:04.100
What happened?

00:21:05.180 --> 00:21:07.600
Your control screen? Okay fine. Alright team.

00:21:08.080 --> 00:21:12.920
Yes. I repeat again. You must be comfortable in using BI

00:21:12.920 --> 00:21:18.400
and Linux basics. Because without this very difficult for you to do the hands on.

00:21:18.400 --> 00:21:23.640
Yeah. So please look into these commands in case your time in the evening.

00:21:23.800 --> 00:21:27.620
Just practice this. You need to have knowledge of how to use this.

00:21:28.060 --> 00:21:31.940
Yeah. So now I'm the container. So to come to the container.

00:21:32.280 --> 00:21:35.600
You have to press control P Q in the same time.

00:21:37.120 --> 00:21:40.980
So you want to be back to host. Press control P Q.

00:21:41.820 --> 00:21:45.920
Control button. P Q. Control press P.

00:21:47.200 --> 00:21:49.940
And Q. All these three buttons at the same time.

00:21:50.000 --> 00:21:51.140
We're back to the stop.

00:21:52.900 --> 00:21:53.400
The host.

00:21:55.080 --> 00:21:58.040
Okay. I think I'm good. Fine. So next one.

00:21:58.720 --> 00:22:02.480
So now let's do some process. Let's start the container.

00:22:04.540 --> 00:22:07.680
Do a docus. How to copy. Please observe how to copy it.

00:22:07.860 --> 00:22:09.200
So if you want to copy something.

00:22:09.820 --> 00:22:13.640
You copy it by highlighting what you want.

00:22:14.340 --> 00:22:17.660
It gets normally copied. Let's see this.

00:22:18.860 --> 00:22:20.940
And then I click on paste.

00:22:22.020 --> 00:22:25.920
You need not even right click and copy it. Just highlight. It will get copied.

00:22:26.620 --> 00:22:29.860
And wherever you want. Right click and paste it.

00:22:30.960 --> 00:22:34.340
You need not go ahead and copy manually. Just go ahead and try to do this.

00:22:34.340 --> 00:22:37.740
Just highlight it. And wherever you want. You right click. It will get pasted.

00:22:37.760 --> 00:22:39.740
Are we clear? That's it. You're good. I think.

00:22:39.740 --> 00:22:42.040
Yeah. This is how we start working in.

00:22:42.480 --> 00:22:43.500
Okay. Okay. Okay.

00:22:43.960 --> 00:22:46.940
So now you can do some operations.

00:22:48.040 --> 00:22:50.680
Can you log in? You cannot log in now because it's stopped.

00:22:51.360 --> 00:22:54.300
So try to use the app. You can use app panel in Linux.

00:22:55.700 --> 00:22:56.740
And then log into it.

00:22:57.720 --> 00:22:59.380
You cannot log in because it is not running.

00:22:59.920 --> 00:23:02.260
So what are you supposed to do? What are you supposed to do now?

00:23:03.180 --> 00:23:04.700
You cannot log in. What are you supposed to do?

00:23:04.740 --> 00:23:05.620
Now it is done.

00:23:07.080 --> 00:23:08.180
Now I'm going to create a new one.

00:23:08.180 --> 00:23:11.840
So instead of start, make it start.

00:23:15.320 --> 00:23:17.280
And now log into the container.

00:23:19.220 --> 00:23:22.260
And see whether you have the file. Do the same file.

00:23:22.980 --> 00:23:23.820
And do a cat.

00:23:26.320 --> 00:23:27.300
And use a contents.

00:23:29.600 --> 00:23:30.180
Start it.

00:23:31.380 --> 00:23:32.260
Log in back.

00:23:32.820 --> 00:23:34.600
And see if you have the same file.

00:23:36.720 --> 00:23:39.020
Okay. You see it. Do a cat now.

00:23:39.280 --> 00:23:41.900
Do a cat and a file name.

00:23:42.280 --> 00:23:43.600
Type in cat. Cat cat.

00:23:44.380 --> 00:23:46.840
And a file name. Just type in. You can use it. Yes.

00:23:47.180 --> 00:23:48.680
Example 2.ext.

00:23:50.460 --> 00:23:53.500
So this is how we can log in back.

00:23:53.680 --> 00:23:54.520
See the files.

00:23:55.060 --> 00:23:58.400
You see when you stop and start, this is the file that is still existing.

00:23:59.400 --> 00:24:01.220
Now press control PQ.

00:24:01.920 --> 00:24:02.700
Come to the host.

00:24:03.400 --> 00:24:05.000
Control PQ in sequence.

00:24:05.360 --> 00:24:06.580
That's it. I think we're good now.

00:24:06.960 --> 00:24:08.880
Everyone press control PQ.

00:24:09.360 --> 00:24:10.540
Come out.

00:24:11.420 --> 00:24:13.920
Yeah. Press control PQ to come out.

00:24:14.540 --> 00:24:17.480
So this is how you create a container.

00:24:18.520 --> 00:24:20.260
And how you log into the container.

00:24:21.420 --> 00:24:23.480
And how we see the running containers.

00:24:25.080 --> 00:24:27.500
So now, next is

00:24:27.500 --> 00:24:29.800
You want to share this file.

00:24:29.860 --> 00:24:32.080
What you created with your team members.

00:24:33.980 --> 00:24:36.480
So you need to push it.

00:24:36.600 --> 00:24:37.340
To repository.

00:24:38.540 --> 00:24:41.700
So did you all create a repo in Docker Hub before?

00:24:43.060 --> 00:24:45.020
Did you create your own repository or not?

00:24:45.420 --> 00:24:46.380
Let's start again.

00:24:47.100 --> 00:24:49.160
So what do you now do? Please observe.

00:24:49.760 --> 00:24:50.620
Do along with me.

00:24:51.420 --> 00:24:52.640
Do a Docker PS first.

00:24:57.960 --> 00:25:01.480
And type in Docker commit.

00:25:02.100 --> 00:25:04.780
Docker commit the container.

00:25:07.280 --> 00:25:08.040
Changes.

00:25:10.440 --> 00:25:12.020
To a new image.

00:25:13.680 --> 00:25:14.560
So give any image.

00:25:16.220 --> 00:25:18.800
Do a Docker space commit.

00:25:19.140 --> 00:25:20.500
Space your container name.

00:25:21.420 --> 00:25:23.180
Or the ID and give the image name.

00:25:24.300 --> 00:25:26.620
And check if it has got completed.

00:25:26.620 --> 00:25:29.380
So again do a Docker images.

00:25:31.740 --> 00:25:33.700
And check whether you have a new image.

00:25:36.580 --> 00:25:39.600
So the contents of the container and coming to image.

00:25:40.300 --> 00:25:40.860
I'm confirming.

00:25:42.640 --> 00:25:44.540
Okay. I think June is good.

00:25:45.520 --> 00:25:46.360
Charles is good.

00:25:47.460 --> 00:25:48.820
Okay. I think I'm putting it now.

00:25:49.360 --> 00:25:52.560
So now this is what you want to push it.

00:25:52.760 --> 00:25:55.560
So let's see the syntax. You can also use the Docker tag.

00:25:55.560 --> 00:25:57.880
This is syntax of every command.

00:25:58.700 --> 00:26:00.600
Do a Docker tag and type in help.

00:26:02.260 --> 00:26:05.100
It says Docker tag source image.

00:26:06.040 --> 00:26:07.140
And the target image.

00:26:08.340 --> 00:26:11.360
So your source is a IN01 which is supposed to share.

00:26:12.280 --> 00:26:13.480
And to where does it target?

00:26:15.200 --> 00:26:17.460
So now do you have a repo in Docker Hub?

00:26:20.000 --> 00:26:23.780
If you don't, can you create a repository in Docker Hub?

00:26:24.700 --> 00:26:26.440
Click on create a repository.

00:26:27.420 --> 00:26:27.780
Give a name.

00:26:28.680 --> 00:26:30.200
And click on create.

00:26:30.740 --> 00:26:31.540
Confirm once you are done.

00:26:31.700 --> 00:26:34.700
Please access hub.docker.com in your browser.

00:26:34.980 --> 00:26:36.240
Hub.docker.com.

00:26:37.020 --> 00:26:38.200
And create a new repo.

00:26:38.440 --> 00:26:39.160
Confirm once done.

00:26:39.320 --> 00:26:40.240
Are you doing it team?

00:26:41.920 --> 00:26:42.900
I don't see the screens.

00:26:43.340 --> 00:26:45.920
Are you doing it repo in your Docker Hub?

00:26:46.040 --> 00:26:46.900
Please confirm.

00:26:47.960 --> 00:26:51.120
Access hub.docker.com and create a repository.

00:26:51.440 --> 00:26:52.480
And confirm once you are done.

00:26:52.980 --> 00:26:53.980
The chat please.

00:26:54.360 --> 00:26:54.600
Confirm.

00:26:54.660 --> 00:26:55.580
Because I can't see this.

00:26:55.760 --> 00:26:57.240
My data isn't for me in your browser.

00:26:57.540 --> 00:26:58.260
Confirm once.

00:26:58.400 --> 00:26:59.260
Create a repository.

00:26:59.540 --> 00:27:00.840
Click on repo.

00:27:00.980 --> 00:27:02.160
Click on create a repo.

00:27:02.400 --> 00:27:02.980
Give a name.

00:27:03.240 --> 00:27:03.480
Yes.

00:27:03.940 --> 00:27:04.280
And create.

00:27:04.440 --> 00:27:05.020
Click on create.

00:27:05.180 --> 00:27:06.400
Confirm once this is done.

00:27:06.460 --> 00:27:07.200
Are this okay?

00:27:07.540 --> 00:27:09.240
So now the repository is.

00:27:09.380 --> 00:27:11.100
This is the repo where you want.

00:27:11.280 --> 00:27:11.940
For example.

00:27:12.840 --> 00:27:15.560
So you have to tag to this and push to this.

00:27:16.540 --> 00:27:17.960
So now what you can do is.

00:27:18.060 --> 00:27:21.740
I am going to write the command in notepad so that I can show you easily because

00:27:23.960 --> 00:27:24.640
Syntaxes.

00:27:24.840 --> 00:27:26.340
I'll say Docker.

00:27:27.200 --> 00:27:27.500
Tag.

00:27:28.420 --> 00:27:30.740
My image name is IMG01.

00:27:31.620 --> 00:27:34.460
So my image which I want to tag is IMG01.

00:27:36.060 --> 00:27:39.220
And the tag name of latest of images is.

00:27:40.460 --> 00:27:41.420
This is my source.

00:27:42.260 --> 00:27:43.040
Where to push.

00:27:43.740 --> 00:27:44.820
This is my target.

00:27:45.480 --> 00:27:46.940
So I put a complete name.

00:27:47.280 --> 00:27:48.520
So my complete name.

00:27:49.780 --> 00:27:52.600
Where I want to push.

00:27:53.220 --> 00:27:54.000
Slash repo.

00:27:54.240 --> 00:27:54.680
Are we clear?

00:27:55.000 --> 00:27:56.240
So Docker tag.

00:27:56.600 --> 00:27:58.400
The image 01 colon latest.

00:27:59.400 --> 00:28:00.160
And in here.

00:28:00.660 --> 00:28:02.640
And I'll paste it for you also in chat.

00:28:03.160 --> 00:28:06.640
And given some image version or latest you can say anything.

00:28:08.560 --> 00:28:10.920
And you can say version point two for example.

00:28:12.060 --> 00:28:13.400
So in this syntax.

00:28:14.020 --> 00:28:15.580
Modify your repo name.

00:28:17.180 --> 00:28:20.180
Modify this from this what I've pasted you.

00:28:20.760 --> 00:28:21.700
And run this command.

00:28:21.760 --> 00:28:23.840
Modify your repo complete repo name.

00:28:24.580 --> 00:28:26.760
With what I've given to you the same syntax.

00:28:28.460 --> 00:28:29.580
And run it.

00:28:34.980 --> 00:28:36.820
And again do a Docker images.

00:28:37.260 --> 00:28:38.700
And let me know what happened.

00:28:43.280 --> 00:28:45.060
No no no.

00:28:45.200 --> 00:28:46.400
What is the name you gave before?

00:28:46.580 --> 00:28:47.880
You have not done it properly.

00:28:48.080 --> 00:28:49.400
You have not committed properly.

00:28:49.640 --> 00:28:50.960
Docker commit you did.

00:28:51.160 --> 00:28:52.000
You have not mentioned.

00:28:52.080 --> 00:28:53.180
Can you go up again?

00:28:53.740 --> 00:28:54.100
Use the apparel.

00:28:54.840 --> 00:28:56.400
Please use the apparel.

00:28:57.580 --> 00:28:58.220
Use the apparel.

00:28:58.420 --> 00:28:59.140
No type in apparel.

00:28:59.180 --> 00:29:00.200
Use the apparel in the prompt.

00:29:01.880 --> 00:29:02.260
Yes.

00:29:02.560 --> 00:29:02.640
Yes.

00:29:02.820 --> 00:29:03.500
Once more.

00:29:03.700 --> 00:29:04.240
Once more.

00:29:04.660 --> 00:29:05.160
Not this command.

00:29:05.380 --> 00:29:06.080
Once more.

00:29:06.500 --> 00:29:07.200
Use the apparel.

00:29:07.200 --> 00:29:09.960
For Docker commit slowly.

00:29:11.240 --> 00:29:12.600
Go back to Docker commit command.

00:29:12.960 --> 00:29:13.560
Docker commit.

00:29:15.320 --> 00:29:16.440
Paste the.

00:29:16.680 --> 00:29:16.940
Type it.

00:29:17.160 --> 00:29:18.140
Docker space commit.

00:29:18.520 --> 00:29:19.540
Can you type in otherwise?

00:29:20.540 --> 00:29:21.260
Type it.

00:29:23.540 --> 00:29:24.400
Space commit.

00:29:26.320 --> 00:29:27.020
Space commit.

00:29:27.400 --> 00:29:29.080
Space the container ID.

00:29:30.260 --> 00:29:31.540
Paste it.

00:29:31.900 --> 00:29:33.060
That A3 5.

00:29:34.100 --> 00:29:36.560
The A3 5 you see in the top.

00:29:36.560 --> 00:29:37.140
Yes.

00:29:37.340 --> 00:29:37.720
Yeah.

00:29:38.740 --> 00:29:38.840
Yes.

00:29:39.080 --> 00:29:39.580
Paste it.

00:29:39.600 --> 00:29:40.300
Don't press enter.

00:29:41.000 --> 00:29:42.340
So now give a space.

00:29:43.600 --> 00:29:44.040
Space.

00:29:45.200 --> 00:29:45.640
IMG01.

00:29:48.420 --> 00:29:48.860
IMG01.

00:29:49.560 --> 00:29:50.180
Hello one.

00:29:50.520 --> 00:29:51.420
Press enter.

00:29:52.800 --> 00:29:53.440
Press enter.

00:29:54.540 --> 00:29:56.340
Now run the tag command again.

00:29:56.400 --> 00:29:57.500
The same which you ran before.

00:29:57.580 --> 00:29:59.000
Just run the tag command again.

00:29:59.640 --> 00:29:59.860
Yes.

00:29:59.900 --> 00:30:01.580
Now do a Docker space images.

00:30:01.740 --> 00:30:02.060
Yeah.

00:30:03.120 --> 00:30:03.480
Okay.

00:30:03.600 --> 00:30:03.920
Are we good?

00:30:04.020 --> 00:30:04.640
You said top one.

00:30:04.640 --> 00:30:05.300
The first one.

00:30:05.380 --> 00:30:08.640
First one is what is being tagged to.

00:30:09.300 --> 00:30:09.720
Okay.

00:30:10.080 --> 00:30:10.340
Others.

00:30:10.520 --> 00:30:10.860
Are we good?

00:30:11.200 --> 00:30:12.980
I think Charles is stuck somewhere.

00:30:14.140 --> 00:30:14.360
Okay.

00:30:14.420 --> 00:30:15.580
I think we're good.

00:30:16.260 --> 00:30:18.620
Let's last one is Jean.

00:30:18.840 --> 00:30:19.580
You're good.

00:30:20.820 --> 00:30:23.440
And we also talked about CK.

00:30:23.760 --> 00:30:24.680
Even CK is good.

00:30:25.400 --> 00:30:25.680
Yeah.

00:30:26.240 --> 00:30:27.980
So now how do you push it?

00:30:28.400 --> 00:30:29.740
Let us see the learner syntax.

00:30:29.860 --> 00:30:31.600
So now if we do a Docker push.

00:30:31.600 --> 00:30:34.600
And see the help of it.

00:30:35.180 --> 00:30:36.040
Do a Docker push.

00:30:36.760 --> 00:30:38.020
And see help of it.

00:30:38.160 --> 00:30:38.880
And see the syntax.

00:30:40.120 --> 00:30:42.900
So it says Docker push and option in the name tag.

00:30:44.620 --> 00:30:48.900
So it means that you can use the same command just for your tag.

00:30:49.900 --> 00:30:52.280
And just mention the destination.

00:30:52.500 --> 00:30:53.860
So you can say.

00:30:54.260 --> 00:30:55.460
Docker push.

00:30:58.780 --> 00:31:02.120
And give your destination location.

00:31:02.420 --> 00:31:07.280
So Docker push space your report colon the tag name.

00:31:08.020 --> 00:31:09.460
So it asks for authentication.

00:31:11.380 --> 00:31:13.440
And for once just do something like this.

00:31:14.560 --> 00:31:14.780
Okay.

00:31:14.920 --> 00:31:15.360
It's good.

00:31:15.540 --> 00:31:16.020
Okay.

00:31:16.140 --> 00:31:17.700
I'll tell you what to do next.

00:31:18.220 --> 00:31:19.400
Now what is.

00:31:21.320 --> 00:31:21.800
Okay.

00:31:26.160 --> 00:31:27.120
Log in.

00:31:27.360 --> 00:31:28.840
Give your username.

00:31:29.280 --> 00:31:30.720
Which is signed up for a Docker Hub.

00:31:30.860 --> 00:31:31.820
Use the username.

00:31:34.300 --> 00:31:35.660
And enter the password.

00:31:36.540 --> 00:31:36.940
For Docker.

00:31:37.100 --> 00:31:38.060
Docker Hub account.

00:31:39.300 --> 00:31:40.440
And press enter.

00:31:42.120 --> 00:31:43.940
So authenticate by using Docker space.

00:31:43.940 --> 00:31:44.500
Log in.

00:31:44.720 --> 00:31:45.480
And then execute.

00:31:45.580 --> 00:31:46.520
And then do a push.

00:31:46.520 --> 00:31:49.820
Now it must push in the contents.

00:31:50.540 --> 00:31:52.120
From a local to central.

00:31:59.360 --> 00:31:59.900
Yeah good.

00:32:00.180 --> 00:32:01.920
So now refresh your repository.

00:32:03.220 --> 00:32:04.560
Refresh your repository.

00:32:06.060 --> 00:32:08.760
And you must be seeing the image in here.

00:32:08.820 --> 00:32:11.300
And if you want your colleagues to pull for example.

00:32:11.880 --> 00:32:13.560
We can go to tags tab.

00:32:13.680 --> 00:32:14.540
And you see tag name.

00:32:14.920 --> 00:32:15.960
And you can give it to your colleague.

00:32:16.060 --> 00:32:17.060
For example you can pull mine.

00:32:17.220 --> 00:32:18.000
So this is mine.

00:32:18.020 --> 00:32:18.420
Copy.

00:32:19.160 --> 00:32:20.300
If you want mine.

00:32:21.520 --> 00:32:22.520
You can pull it.

00:32:23.100 --> 00:32:24.640
And get a container from it.

00:32:25.900 --> 00:32:26.140
Yes.

00:32:26.240 --> 00:32:26.840
Let's see.

00:32:27.420 --> 00:32:28.160
Can I do this?

00:32:28.700 --> 00:32:30.060
Try to pull others.

00:32:30.260 --> 00:32:30.860
You can exchange.

00:32:31.680 --> 00:32:32.760
And see the image.

00:32:32.880 --> 00:32:34.240
And try to get a container from it.

00:32:34.340 --> 00:32:35.420
And see if you can see it.

00:32:37.300 --> 00:32:37.700
Yeah.

00:32:37.820 --> 00:32:38.440
Try to do yourself.

00:32:38.460 --> 00:32:39.000
Let's see.

00:32:39.000 --> 00:32:41.000
I want you to pull my image.

00:32:41.960 --> 00:32:43.700
Get a container from this image.

00:32:44.460 --> 00:32:47.360
And see what is there in my example.txt.

00:32:47.740 --> 00:32:48.060
Please experiment.

00:32:48.160 --> 00:32:49.180
I want you to do yourself.

00:32:49.400 --> 00:32:50.580
What you can do Charles.

00:32:52.420 --> 00:32:54.300
Now go back to your repository.

00:32:55.240 --> 00:32:56.480
In your docker hub.

00:32:57.360 --> 00:32:59.400
Go back to docker hub.

00:32:59.720 --> 00:33:00.120
Browser.

00:33:01.820 --> 00:33:03.320
And see do you refresh.

00:33:03.420 --> 00:33:04.520
Do you see the image there?

00:33:06.100 --> 00:33:06.500
Yes.

00:33:06.500 --> 00:33:08.740
So now my next quiz.

00:33:09.020 --> 00:33:10.760
Can you copy mine.

00:33:10.980 --> 00:33:12.920
And try to get a container from it.

00:33:13.620 --> 00:33:15.180
I want you to pull my image.

00:33:15.520 --> 00:33:16.440
And give the chat history.

00:33:17.340 --> 00:33:18.120
Run the command.

00:33:19.020 --> 00:33:20.520
And try to get a container from it.

00:33:20.800 --> 00:33:21.900
Do a clear.

00:33:21.940 --> 00:33:24.440
See it will not be always in the docker.

00:33:24.500 --> 00:33:25.680
Just type in cd.

00:33:25.780 --> 00:33:26.500
Type in cd.

00:33:27.640 --> 00:33:28.480
Press enter.

00:33:30.360 --> 00:33:32.860
Now try to copy what I gave in the chat.

00:33:33.740 --> 00:33:34.500
The chat I have given you.

00:33:35.820 --> 00:33:36.700
Pull command.

00:33:37.040 --> 00:33:37.660
Pull mine.

00:33:37.820 --> 00:33:39.640
Run the command.

00:33:45.820 --> 00:33:47.320
Copy and paste the command.

00:33:49.240 --> 00:33:49.780
I am not sure.

00:33:49.980 --> 00:33:51.340
Why are you typing everything manually?

00:33:51.560 --> 00:33:52.440
You are not able to copy and paste.

00:33:52.520 --> 00:33:52.960
How come?

00:33:53.100 --> 00:33:54.300
It must work.

00:33:55.580 --> 00:33:55.800
Others?

00:33:55.960 --> 00:33:56.620
Ok ok.

00:33:56.700 --> 00:33:57.000
I am not sure.

00:33:57.080 --> 00:33:57.680
It must work.

00:33:57.940 --> 00:33:58.380
Others?

00:33:58.760 --> 00:34:00.000
I have to copy and paste.

00:34:00.660 --> 00:34:01.640
From your chat history.

00:34:01.820 --> 00:34:02.180
Ok.

00:34:02.180 --> 00:34:03.040
Experiment the next one.

00:34:03.520 --> 00:34:04.040
Let's see.

00:34:04.160 --> 00:34:04.360
Ok.

00:34:04.440 --> 00:34:05.820
One second.

00:34:08.160 --> 00:34:09.640
Docker space login first.

00:34:09.880 --> 00:34:10.640
I am asking you to login.

00:34:11.300 --> 00:34:13.240
Do a docker space login.

00:34:14.300 --> 00:34:14.760
Authenticate.

00:34:15.380 --> 00:34:15.920
Ok ok.

00:34:16.080 --> 00:34:16.480
Sorry sorry.

00:34:16.540 --> 00:34:17.020
One second.

00:34:17.400 --> 00:34:18.960
I think I gave a wrong name.

00:34:19.180 --> 00:34:19.680
Sorry sorry.

00:34:19.780 --> 00:34:20.300
My mistake.

00:34:20.520 --> 00:34:20.760
One second.

00:34:20.980 --> 00:34:21.740
My mistake.

00:34:23.540 --> 00:34:24.000
Confirm.

00:34:24.060 --> 00:34:24.440
No.

00:34:24.480 --> 00:34:25.480
You type in manually.

00:34:27.260 --> 00:34:28.520
My name is wrong.

00:34:28.740 --> 00:34:29.380
See the spelling.

00:34:29.800 --> 00:34:30.260
Shake the nail.

00:34:30.480 --> 00:34:32.500
So I thought you copied and pasted.

00:34:32.500 --> 00:34:33.200
Spelling is wrong.

00:34:33.380 --> 00:34:33.660
Ok.

00:34:33.880 --> 00:34:34.800
Play around.

00:34:36.500 --> 00:34:36.700
Yes.

00:34:36.840 --> 00:34:37.280
Are we good?

00:34:37.420 --> 00:34:39.920
I am getting at the concept of how to work with containers.

00:34:41.820 --> 00:34:41.980
Ok.

00:34:42.100 --> 00:34:42.320
Now.

00:34:42.500 --> 00:34:43.200
One second.

00:34:43.500 --> 00:34:43.900
Download.

00:34:44.200 --> 00:34:45.640
This is.

00:34:45.860 --> 00:34:47.440
Whose screen is this machine right now?

00:34:47.660 --> 00:34:48.060
It is Jun.

00:34:48.220 --> 00:34:48.420
Jun.

00:34:48.580 --> 00:34:49.180
You are good now.

00:34:49.240 --> 00:34:50.360
So what you do is.

00:34:51.160 --> 00:34:53.900
So now you are inside my container.

00:34:54.600 --> 00:34:55.560
So now do LS.

00:34:57.460 --> 00:34:57.960
Do LS?

00:34:58.160 --> 00:34:58.320
No no.

00:34:58.360 --> 00:34:59.660
You are already in the container right now.

00:34:59.800 --> 00:35:00.100
Do LS.

00:35:00.260 --> 00:35:00.840
Type in LS.

00:35:00.840 --> 00:35:01.180
LS.

00:35:01.640 --> 00:35:02.080
LS.

00:35:02.340 --> 00:35:03.020
Not able to type it.

00:35:03.100 --> 00:35:03.620
What happens?

00:35:03.940 --> 00:35:04.780
Relong into it.

00:35:04.820 --> 00:35:05.340
I am not sure.

00:35:05.580 --> 00:35:06.200
That is some issue.

00:35:06.700 --> 00:35:07.140
Ok.

00:35:08.320 --> 00:35:09.320
This is how we get started.

00:35:09.480 --> 00:35:10.360
The last command.

00:35:11.420 --> 00:35:13.920
So we can also create containers in different methods.

00:35:14.040 --> 00:35:15.400
So this is one more method.

00:35:16.420 --> 00:35:17.840
Where I can create a container.

00:35:18.060 --> 00:35:19.340
And I will be inside the container.

00:35:19.960 --> 00:35:20.660
That is an example.

00:35:21.560 --> 00:35:22.400
So example.

00:35:22.480 --> 00:35:23.400
If you want to create a container.

00:35:25.180 --> 00:35:26.800
I can also use.

00:35:27.060 --> 00:35:29.120
Like run-ip.

00:35:29.920 --> 00:35:32.500
Give the image name.

00:35:33.140 --> 00:35:34.560
The cat name.

00:35:35.320 --> 00:35:35.780
And the shell.

00:35:36.960 --> 00:35:37.960
So just create a container.

00:35:38.140 --> 00:35:39.140
I am inside it.

00:35:39.360 --> 00:35:40.420
There is a run-ip.

00:35:41.960 --> 00:35:43.420
So now if I come out of it.

00:35:43.520 --> 00:35:44.180
Do a docker ts.

00:35:44.280 --> 00:35:45.600
You will see a new container got created.

00:35:47.120 --> 00:35:48.120
So docker run-ip.

00:35:48.940 --> 00:35:50.320
Is a method in which.

00:35:50.540 --> 00:35:51.600
You will create a container.

00:35:51.820 --> 00:35:53.760
And you will be inside it.

00:35:55.280 --> 00:35:55.980
It is a container.

00:35:56.080 --> 00:35:57.060
And then you can do LS.

00:35:57.180 --> 00:35:58.060
Example.txt.

00:35:58.060 --> 00:35:59.260
And you can see my file.

00:35:59.460 --> 00:36:01.060
That is what I am going to do at your end.

00:36:05.240 --> 00:36:05.600
Okay.

00:36:06.720 --> 00:36:07.500
Are we good?

00:36:08.220 --> 00:36:09.540
Yes, we are good, Jun.

00:36:09.800 --> 00:36:11.100
So now do a cat.

00:36:11.420 --> 00:36:12.940
Of example.txt.

00:36:13.980 --> 00:36:14.720
No, no, no.

00:36:14.820 --> 00:36:15.680
You are already in a container.

00:36:15.820 --> 00:36:16.720
Please understand.

00:36:17.740 --> 00:36:18.860
The run-ip is already in a container.

00:36:18.900 --> 00:36:19.540
Do a LS.

00:36:20.620 --> 00:36:21.440
Do a LS please.

00:36:21.500 --> 00:36:22.400
Do you know how to type in LS?

00:36:22.640 --> 00:36:24.120
Okay, okay.

00:36:24.600 --> 00:36:25.320
Okay, okay.

00:36:25.500 --> 00:36:26.460
Charles, are we good?

00:36:28.220 --> 00:36:29.460
No, what are you trying to do now?

00:36:29.720 --> 00:36:30.740
Do a control C.

00:36:30.900 --> 00:36:32.360
What are you trying to do?

00:36:33.620 --> 00:36:34.200
Do a control C.

00:36:34.220 --> 00:36:34.800
Type in clear.

00:36:35.880 --> 00:36:36.560
Please type clear.

00:36:36.820 --> 00:36:37.860
What are the previous comments?

00:36:37.880 --> 00:36:39.280
Just use the up arrow twice.

00:36:40.320 --> 00:36:41.480
Use the up arrow twice.

00:36:41.720 --> 00:36:42.580
Press the up arrow.

00:36:44.000 --> 00:36:44.560
On your laptop.

00:36:45.820 --> 00:36:46.540
Up, up.

00:36:47.140 --> 00:36:47.820
Up arrows.

00:36:48.560 --> 00:36:49.080
Yeah, yeah.

00:36:49.080 --> 00:36:49.840
One second, one second.

00:36:50.380 --> 00:36:51.160
So what are you trying to do?

00:36:51.180 --> 00:36:52.120
Did you create a container?

00:36:52.940 --> 00:36:53.920
Did you push it?

00:36:53.980 --> 00:36:54.620
Do docker have?

00:36:54.620 --> 00:36:54.880
Sorry.

00:36:55.040 --> 00:36:55.500
No success.

00:36:55.980 --> 00:36:56.340
Okay.

00:36:56.340 --> 00:36:58.340
Can you do a control C?

00:37:00.000 --> 00:37:02.160
Do a control C.

00:37:02.440 --> 00:37:07.340
Type in docker space log in.

00:37:08.720 --> 00:37:10.340
Docker space log in.

00:37:11.400 --> 00:37:11.900
Enter.

00:37:13.360 --> 00:37:13.880
One second.

00:37:14.260 --> 00:37:14.400
Yes.

00:37:15.020 --> 00:37:19.480
Now type in docker space push paste.

00:37:19.980 --> 00:37:20.840
Copy the report.

00:37:21.000 --> 00:37:22.340
The top report completely.

00:37:22.880 --> 00:37:23.380
The charts.

00:37:23.440 --> 00:37:24.100
You see this?

00:37:24.440 --> 00:37:24.980
Not that.

00:37:24.980 --> 00:37:25.560
Not that.

00:37:25.980 --> 00:37:27.080
The first column.

00:37:27.240 --> 00:37:27.400
Yes.

00:37:27.400 --> 00:37:28.120
Copy that.

00:37:28.540 --> 00:37:29.460
Just highlight it.

00:37:29.720 --> 00:37:29.960
Yeah.

00:37:29.960 --> 00:37:30.760
Just highlight it.

00:37:30.820 --> 00:37:31.160
That's it.

00:37:31.240 --> 00:37:31.560
No, no.

00:37:31.720 --> 00:37:32.420
You don't do it.

00:37:33.000 --> 00:37:33.820
That's not required.

00:37:34.160 --> 00:37:34.980
Just highlight it.

00:37:35.040 --> 00:37:35.360
That's it.

00:37:35.380 --> 00:37:36.460
Got copied now.

00:37:36.860 --> 00:37:38.320
Come back to next push.

00:37:39.040 --> 00:37:39.860
Come back to next push.

00:37:40.280 --> 00:37:41.200
Now right click there.

00:37:41.780 --> 00:37:43.260
Type in docker space push.

00:37:44.620 --> 00:37:46.040
Docker space push.

00:37:46.520 --> 00:37:46.880
Paste.

00:37:48.120 --> 00:37:49.440
Where the pointer is there.

00:37:49.480 --> 00:37:49.940
Not there.

00:37:50.040 --> 00:37:50.620
Exactly location.

00:37:52.540 --> 00:37:52.740
Yeah.

00:37:52.740 --> 00:37:53.420
Right click.

00:37:56.660 --> 00:37:58.100
Copy it properly once more.

00:37:59.180 --> 00:38:01.700
You just need to highlight what you want to copy.

00:38:03.400 --> 00:38:03.560
Yeah.

00:38:03.560 --> 00:38:04.160
It's copied.

00:38:09.060 --> 00:38:09.340
Enter.

00:38:10.740 --> 00:38:11.420
No, no, no.

00:38:11.540 --> 00:38:11.720
Sorry.

00:38:12.120 --> 00:38:12.960
Use again apparel.

00:38:13.140 --> 00:38:14.340
Use apparel.

00:38:15.600 --> 00:38:15.860
Yeah.

00:38:15.860 --> 00:38:17.860
Thank you.

00:38:18.860 --> 00:38:18.960
Here there are items again.

00:38:18.960 --> 00:38:19.460
Then in the next,

00:38:19.680 --> 00:38:30.000
No, no.

00:38:40.400 --> 00:38:43.440
Then in the next.

00:38:44.980 --> 00:38:59.580
After B it is 0, delete it, delete dot, yes 0, no 0, 0.2, 0.2 and rest of the documents

00:38:59.580 --> 00:39:06.860
here tag name, the tag name, so now refresh your browser, go to your browser, in dockerhub

00:39:06.860 --> 00:39:27.860
do you see the image, yes, this is how we work, are we good, ok, ok, team, this is a brief about the first one, any questions, any idea about how do you log into container, how do we do the operations, any questions, are we good, please confirm so that you can proceed, ok, ok

00:39:30.040 --> 00:39:57.840
that's what I see, understand, any next, the next one, let's continue, I also want to understand what time is your preferred lunch time, what time you prefer a lunch break or you normally take a lunch break now or you take a lunch break after class, I'm not sure how does it work there, then get you, so you want to break time, team, everyone please, a request here, each one, let me know when you want to take a break, ok, ok, ok, ok, ok, ok

00:39:57.860 --> 00:40:17.320
after 30 minutes from now or right now when you want, that's my question, 12.30, you want 12.30, ok, so is it ok, we can give a 30 minutes break for lunch break, 12.30 to 1 o'clock, is that ok, or you need more time for lunch break, just asking how does that work

00:40:18.520 --> 00:40:42.080
will 30 minutes be good for you all, so for example if I say 12.30 to 1 pm, will it be good, confirm by using thumbs up so that we are beyond this, everyone didn't get you, you mean to say you need more time, yeah that's why I'm asking you, that's why I'm asking, was it open, how much time you require, you need 1 hour or 45 minutes or 30 minutes

00:40:43.440 --> 00:40:59.800
ok, ok, others are we good, ok, but because what is happening here is you are not able to do the hands on quickly, so we are actually going slow compared to the speed expected, yeah, yeah, and hence

00:41:02.140 --> 00:41:27.260
so can we, yes, yes, yes, yes, can we do it from, for 45 minutes, say 1, to 1.15, sorry, 12.30 pm to 1.15, yeah, we'll do it later, so right now the time is I think for you it is 12.07, correct, is it 12.07, ok, fine, let's continue and then take a break, now what is Dr.

00:41:32.600 --> 00:41:56.720
So tomorrow if you want to create a file, so are you aware of any languages like Python or Java, do we have programmatic language, anyone in here, do you know Python or do you know Java or do you know C sharp, any languages, yes, no, do you know C sharp, so how do you write in your own contents,

00:41:56.720 --> 00:42:16.120
so we create a Docker file, BI Docker file and then you can mention from where you want the image, you can mention who was the owner of it, you can mention what you want to install, where is the path of your application, you can mention like for example

00:42:16.980 --> 00:42:42.960
you create a file called a Docker file and this use case is, you see it here, is to create your own IndianX configurations, so in this folder, so you create a folder, for example CD project one and in this folder you will have a Docker file, you will also have some files like IndianX.com,

00:42:42.960 --> 00:43:02.280
you will have all these things in your local machine in the folder directory and then you can say that I want to copy this file to this location in the container, so whatever files you want you have to copy to a folder and you can say add this file in the present directory to your containers,

00:43:02.280 --> 00:43:25.540
like this, you can also call in some file which is outside in intranet or internet to be copied, so we use add or copy to copy the files and we use command and entry point to refer some parameters to be run, so like this you update all the, these are instructions, these are the arguments,

00:43:25.540 --> 00:43:51.180
so this could be OS or Ubuntu, it could be your CentOS or it could be .NET or this could be JDK, anything you can use or if nothing is there it becomes a scratch, scratch means it is from a blank image, so from is to define some base, it could be own images or it could be a .NET, it all depends on what exactly you are trying to create,

00:43:51.180 --> 00:44:13.240
for IndianX I require a minimal OS file, so I am mentioning Ubuntu, so based on your requirement you have to use the appropriate instructions and the arguments and write like this, mention which port number, so once written all these things you run it, so how do you run it?

00:44:13.240 --> 00:44:33.260
To create a build image you say docker build and give a name, T means tag name and you want this name for the image which you are building, space dot, so it means that you are trying to run it in the present working directory, so when you run this you are running as a client,

00:44:34.220 --> 00:44:54.240
now the request goes to daemon, now daemon would look in for a file named as docker file, it will post on the file surface called docker file in the dot, it means the current working directory, it understands that the docker file and whatever was there in the docker file lines those would get executed,

00:44:55.180 --> 00:45:13.760
the first line get executed, so the first line would have some output, it will create a container and the second line if required can use in those containers, this all does it for temporary and the end it will build your image,

00:45:13.760 --> 00:45:35.040
so every line would get executed, it will have information like cache, cache means like a temporary storage, the other layers would refer those temporary layers, gets the information and uses the information what is defined in those temporary layers and then it will collectively create an image and it says the image is built

00:45:36.240 --> 00:46:00.560
and then once you are done you can say docker space images and you will see a new image will about created, are we clear, everyone I will do a hands on now, do a lab now, lab 3, in this lab, so before we get started ensure that, so let's do together, let's create directory, so be in your cd, if you are somewhere do a cd and be on your host,

00:46:00.560 --> 00:46:23.520
so let's talk about lab 2, so lab 3 the word document, so we will first create a directory, I want to show the directory first, so you say cd project 1, so mkdir project 1 for example and go inside it, cd on your host,

00:46:23.520 --> 00:46:38.740
so now you want to get your own docker file in this location, so this is going to have these variables and going to start your apache, so we are trying to create your own container image for apache and these are the lines,

00:46:38.740 --> 00:47:00.740
so copy say as vi docker file, vi space docker file, copy this contents and paste it, copy this contents and paste it,

00:47:11.640 --> 00:47:17.000
copy and paste the contents, let's see we have to paste it everyone,

00:47:18.260 --> 00:47:38.280
ok, yeah then colon escape process, escape colon wq, yes charles you don't have to copy it, charles one second, vi yeah type in same, use app arrow, vi docker file, same command, enter, remove this, do a backspace, do a backspace,

00:47:39.680 --> 00:48:01.280
yes, now press i, now go to a chat history and copy the contents or you can copy from your document also, copy the contents, have you copied, yeah please right click exactly on the where you have the pointer, exactly on yes, yeah right click paste, no you are not doing properly,

00:48:02.620 --> 00:48:16.940
go back, backspace, remove this, which one are you copying, ok let me, can you share screen using your from zoom, share screen, do you have option to share screen directly,

00:48:20.960 --> 00:48:37.420
let me give you access, charles, so which one are you using, because ok please share screen now, i don't see it, i just see your name, i don't see your screen charles share it, please share screen in zoom, yeah ok it's coming up now, yes now right click,

00:48:38.100 --> 00:48:54.420
copy the content, the chat, you see chat, you have some contents or a document, can you go to word document and see how we are copying it, please show me how we are copying it please, ok backspace, remove, delete, could you delete this, i mean not audible, is it because others can hear me,

00:48:54.420 --> 00:49:16.220
so can you go to document charles, charles we need help, i mean you need to do quickly, could you go to the word document, please share complete, charles sorry i can't understand you, so can you share your complete screen, where is the word document of the lab, yeah please first click enable, you see there is not enabled, one second, click enable editing on the top,

00:49:17.560 --> 00:49:34.520
yes now you can copy, till now you are not able to copy because of the enable editing, getting it, yes now you will be able to copy it, it's not getting copied before because you are not able to edit it, now right click, press space, ok use backspace, backspace, go back to word document, right click, right click in here,

00:49:35.580 --> 00:50:02.860
please click on copy, i'm not sure did you copy it properly, copy to notepad on your laptop, copy to notepad on your laptop, fine, now copy from here, copy the contents, yes, now go to your terminal, right click, paste, i'm not sure what i'm doing, just right click, ok, come out of this file, come out of this file, escape colon wq, no no, escape colon wq,

00:50:04.520 --> 00:50:26.260
now do a vi again, use the vi again, via the same app, yeah enter, i yeah right click and paste, ok i'm not sure, can you someone help them, help them, what's the problem, ok, maybe it is not allowing to copy from your office laptop or something restricted, ok, so can you proceed in the meanwhile,

00:50:27.600 --> 00:50:46.580
ok everyone, so now once you paste it, press escape colon wq, now to confirm whether it is properly copied, do a cat, do a cat of the docker file, you see,

00:50:49.320 --> 00:51:11.580
are we good till here everyone, yeah, so now want to build this, i see docker build hyphen p, again image whatever you want to give, image 02 for example, docker build hyphen p, image 02 and space, one space is there and then dot, the end of the command,

00:51:12.660 --> 00:51:34.860
docker build hyphen p, image 02, use the dot and press enter, so docker build hyphen p, image 02, whatever you want to give, image space dot and press enter, and you see the build would happen, the backend,

00:51:56.140 --> 00:51:57.440
yeah get it done,

00:52:26.960 --> 00:52:41.720
please confirm, are you able to get the image, ok, fine, next step is we might have to open some port, just checking to open a port, let me login once again, login to amazon and i'm going to give access for the port,

00:52:44.940 --> 00:53:06.080
so this is what the background server is trying to go inside, and you have all the VMs running in here, ok, so now let's see the traffic, i just want to check in the traffic is being allowed for all the missions, ok, so we just, one minute, let me just modify the,

00:53:06.080 --> 00:53:24.980
ok, my screen is not getting shared, ok, let me share my complete screen, ok, i think i'm finished, enter screen, is the screen all visible, ok, so i'm logging to this one, i'm checking for a port to be given, so that i can do the hands on, just trying to enable a port for you all, just give me a minute, i click on this,

00:53:26.080 --> 00:53:45.880
ok, so i'm trying to modify security group so that it can allow port 80, just trying to modify so that you can all do the output, ok, i'm trying to open all ports so that we can quickly do the hands on, making all traffic, ok, make it all traffic,

00:53:48.480 --> 00:54:11.300
ok, now you do it, let me add a rule for SSH, this is 22, and we add one more rule for HTTP, which is port 80, ok, i'm not able to do it, i think i have to modify the break into the backend,

00:54:11.300 --> 00:54:30.500
ok, so now you do it, right now port, i'll show you how to modify this offline, so are you able to create an image till now, everyone, the image is created, the next step is, i'm trying to expose it outside world, port 80, and we're not able to see because the port is blocked,

00:54:31.280 --> 00:54:59.100
yeah, so on port 80, so what you can do is right now, you can do a curl, so do a curl, the public IP, so do a curl the public IP in your browser, so curl, and the IP address, 18, 139, and 250.99,

00:55:00.100 --> 00:55:15.780
and this must give you the page, so the port is blocked, in the break, i'll let you know, i'll enable the port, you must be able to see the Apache page, understanding the lab, so let's go to this location, and give you the content, what is there inside this, as a website,

00:55:17.060 --> 00:55:35.120
so a simple example about how you can create a container, and how you're exposing the container to outside world, this port is blocked right now, in the break, i'll work with the backend team and have the port to be enabled, and you'll be able to see your website,

00:55:35.120 --> 00:55:54.580
are we clear, a small example about how we can create our own docker file, and you can create and see the contents of the website, yes, no, okay, are you all able to do till here, everyone, this step, the last one will not work, i'll explore in the break, i'll have it done, any questions,

00:55:56.200 --> 00:56:16.340
any questions, Jean, Charles, and others, are we good, okay, so we'll take break now, and after break, i'll ensure that the port is enabled, we'll also see the output in the browser, so break for you till 1.15 pm, okay, or you want to come early,

00:56:17.040 --> 00:56:26.660
okay, break till 1.15 pm, thank you,

00:56:26.660 --> 00:56:46.400
now you have time, hi sir, hi, sir, we have to modify the ports, we have very restricted access, no, when i go to modify the security group, it's allowing me to add a policy, i cannot do it, i can't even one, so let's make it all traffic something easier, otherwise every port we cannot open it,

00:56:46.400 --> 00:57:05.400
so, my, because these people are not very good in Linux, okay, everything, so very difficult for them to allow even one port also, so, okay, if you can modify wherein security group with all traffic, it will be helpful for me to install everything, yeah, thank you, i'll wait for you, there's a break now, yeah,

00:57:37.940 --> 00:57:40.740
thank you,

00:57:44.000 --> 00:57:44.400
yes,

00:57:44.700 --> 00:58:08.120
everyone confirm as you're back from break, you can use group chat, good, others, just confirm, okay, so in the break what happened was i informed the backend team to update the rules, in the break i informed the team to update the rules, so they were added all traffic, it means all ports are allowed right now,

00:58:08.120 --> 00:58:13.180
now when you try to access the public IP,

00:58:13.180 --> 00:58:20.720
of you mentioned the browser, so we can say, and paste the public IP in the browser,

00:58:22.140 --> 00:58:24.440
you will be able to see,

00:58:24.900 --> 00:58:27.980
this is confirmed to be able to see this in the browser,

00:58:28.940 --> 00:58:30.600
and you can also do a curl,

00:58:31.620 --> 00:58:38.380
and you will be able to see the website coming in the content in your local machine also, but in the browser you can see,

00:58:38.380 --> 00:58:42.760
could all confirm please that we see this browser screens at your end,

00:59:09.040 --> 00:59:15.340
yeah, do a curl, http colon double slash and the public IP in your terminal,

00:59:15.340 --> 00:59:20.300
you will be able to see this, could you all show this output, let's see,

00:59:20.880 --> 00:59:22.300
do this,

00:59:23.720 --> 00:59:24.160
curl,

00:59:26.540 --> 00:59:31.460
http colon double slash and the public IP of your VM,

00:59:31.460 --> 00:59:34.900
yeah good, good,

00:59:35.220 --> 00:59:39.160
Charles, type in curl, type in curl once more please,

00:59:40.560 --> 00:59:41.380
space, http,

00:59:43.500 --> 00:59:44.180
http,

00:59:45.100 --> 00:59:48.600
colon double slash, yeah, now the IP,

00:59:49.600 --> 00:59:50.420
type in the IP,

00:59:51.740 --> 00:59:54.660
13213, is the IP right, please confirm and type it,

00:59:55.220 --> 00:59:56.300
something is wrong,

00:59:56.860 --> 00:59:58.820
you have come out to a server,

00:59:59.260 --> 00:59:59.400
Charles,

01:00:00.620 --> 01:00:02.420
login to your server first,

01:00:05.340 --> 01:00:05.740
SSH,

01:00:06.080 --> 01:00:08.980
go to the location first, no, no, you have to go to the location first, you can make it simple,

01:00:10.420 --> 01:00:10.820
cd,

01:00:11.040 --> 01:00:13.780
forward slash cd space forward slash home,

01:00:13.900 --> 01:00:16.260
go to the path, go to the path, please login to the server and do the check,

01:00:16.440 --> 01:00:18.160
the setting is wrong, this home,

01:00:19.260 --> 01:00:22.620
cd forward slash home slash student,

01:00:22.620 --> 01:00:25.380
cd forward slash home slash student,

01:00:27.020 --> 01:00:31.180
you can do a single one, one second, one second, do a list, do a list,

01:00:31.320 --> 01:00:33.780
no, no, no, you are in the wrong path, Charles, please be in sync,

01:00:34.520 --> 01:00:36.120
please do a list in this location,

01:00:36.340 --> 01:00:38.440
do a list, you are still not in the right location,

01:00:38.680 --> 01:00:41.160
so now what you do is home student,

01:00:41.240 --> 01:00:44.300
do a cd, type in cd space VM,

01:00:44.480 --> 01:00:45.780
type in VM, small,

01:00:45.780 --> 01:00:47.040
and tap,

01:00:47.420 --> 01:00:47.760
tap,

01:00:49.120 --> 01:00:49.440
enter,

01:00:51.440 --> 01:00:52.780
yeah, now do SSH,

01:00:54.620 --> 01:00:55.900
hyphen i,

01:00:56.740 --> 01:00:58.480
space hyphen i, no, hyphen,

01:00:58.680 --> 01:00:59.780
hyphen, hyphen, hyphen,

01:01:00.960 --> 01:01:01.920
hyphen dash,

01:01:02.960 --> 01:01:04.060
hyphen, yes,

01:01:04.680 --> 01:01:05.440
i,

01:01:07.080 --> 01:01:07.440
space,

01:01:08.280 --> 01:01:09.820
now type in the key name,

01:01:09.960 --> 01:01:11.980
key.pem, key.pem,

01:01:12.080 --> 01:01:13.700
key.pem, Charles,

01:01:13.700 --> 01:01:14.960
space,

01:01:16.800 --> 01:01:17.440
ubuntu, ubuntu spelling,

01:01:18.440 --> 01:01:19.100
ubuntu,

01:01:20.480 --> 01:01:21.140
ubuntu,

01:01:23.760 --> 01:01:24.280
I'm not sure,

01:01:24.960 --> 01:01:27.300
so Charles, you have to be in sync, please,

01:01:27.340 --> 01:01:28.360
please understand

01:01:29.400 --> 01:01:31.600
the commands, this is your syntax,

01:01:31.720 --> 01:01:32.920
spelling is wrong,

01:01:34.880 --> 01:01:35.540
ubuntu,

01:01:37.160 --> 01:01:37.920
be for boy,

01:01:38.420 --> 01:01:38.960
ubuntu,

01:01:43.460 --> 01:01:44.740
space,

01:01:46.520 --> 01:01:47.460
su,

01:01:48.480 --> 01:01:49.260
su,

01:01:50.960 --> 01:01:51.500
space, hyphen,

01:01:52.420 --> 01:01:54.960
one space and hyphen,

01:01:55.800 --> 01:01:56.820
hyphen,

01:01:58.060 --> 01:01:58.480
enter,

01:02:00.320 --> 01:02:01.680
yeah, now do the curl command,

01:02:01.740 --> 01:02:02.080
curl,

01:02:03.020 --> 01:02:03.740
http,

01:02:06.600 --> 01:02:08.220
double slash and the public IP,

01:02:08.500 --> 01:02:10.120
http, double slash,

01:02:10.180 --> 01:02:12.020
enter, it means that something is not done properly,

01:02:12.180 --> 01:02:13.900
what is done, can you go to,

01:02:15.000 --> 01:02:15.900
do a ls,

01:02:17.660 --> 01:02:18.240
do a ls,

01:02:18.500 --> 01:02:19.840
yes, where is the, go to project one,

01:02:19.980 --> 01:02:21.800
the cd, go inside it, do a clear,

01:02:21.920 --> 01:02:23.520
have it clear, please go inside the project,

01:02:24.640 --> 01:02:26.020
cd, project one, enter,

01:02:26.180 --> 01:02:28.060
do a ls, yes, do a docker

01:02:28.060 --> 01:02:30.040
space images, now Charles, did you do the

01:02:30.040 --> 01:02:31.820
hands on of the lab or no, please,

01:02:31.960 --> 01:02:33.740
let us know, Charles, let us speak, please,

01:02:33.740 --> 01:02:36.000
I'm not sure, did you run the commands

01:02:36.000 --> 01:02:37.540
of the lab, yes or no, please,

01:02:37.660 --> 01:02:39.540
type in docker space images,

01:02:39.860 --> 01:02:41.460
docker space images,

01:02:43.780 --> 01:02:44.340
type clear,

01:02:45.460 --> 01:02:47.140
c-l-e-a-r,

01:02:47.440 --> 01:02:49.280
I can't see it, so now,

01:02:49.620 --> 01:02:50.240
do a vi,

01:02:51.580 --> 01:02:53.740
docker build, type in docker build,

01:02:55.940 --> 01:02:57.060
docker build,

01:02:57.300 --> 01:02:57.620
build,

01:02:57.820 --> 01:02:59.320
v-u-i-l-d,

01:02:59.460 --> 01:02:59.820
build,

01:02:59.820 --> 01:03:03.540
v-u-i-l-d

01:03:03.540 --> 01:03:03.820
space

01:03:04.480 --> 01:03:05.880
hyphen t,

01:03:05.900 --> 01:03:09.320
t for tango, hyphen t, space

01:03:09.320 --> 01:03:09.820
img01,

01:03:10.960 --> 01:03:11.420
02,

01:03:11.940 --> 01:03:12.760
img01,

01:03:14.380 --> 01:03:15.980
making any name,

01:03:16.300 --> 01:03:18.240
okay, just type in

01:03:18.240 --> 01:03:20.200
img, yeah, space,

01:03:20.520 --> 01:03:21.700
space dot,

01:03:23.020 --> 01:03:23.900
yeah, enter,

01:03:24.040 --> 01:03:25.300
is the image getting pulled,

01:03:25.640 --> 01:03:27.340
yes, now,

01:03:27.340 --> 01:03:29.620
come down,

01:03:29.620 --> 01:03:31.340
type in clear, okay, now,

01:03:32.680 --> 01:03:33.180
images,

01:03:33.360 --> 01:03:33.960
enter,

01:03:35.380 --> 01:03:36.920
now, do a docker,

01:03:37.180 --> 01:03:39.340
hyphen d,

01:03:40.760 --> 01:03:41.200
space,

01:03:41.300 --> 01:03:42.760
hyphen p,

01:03:43.160 --> 01:03:45.520
hyphen p, space,

01:03:45.960 --> 01:03:46.580
80,

01:03:47.080 --> 01:03:48.940
80, no, 80,

01:03:49.060 --> 01:03:50.980
80 number, number 80, 80,

01:03:51.000 --> 01:03:52.600
colon, 80, colon,

01:03:52.980 --> 01:03:54.380
after 80, colon,

01:03:54.380 --> 01:03:56.760
no space, shift and semicolon button,

01:03:56.780 --> 01:03:58.860
colon, 80,

01:03:59.540 --> 01:04:00.300
80, 80,

01:04:00.300 --> 01:04:01.700
number 80,

01:04:02.320 --> 01:04:03.060
space,

01:04:05.940 --> 01:04:06.680
nginx01,

01:04:07.660 --> 01:04:08.440
no, no, no, why are you giving

01:04:08.440 --> 01:04:08.980
space?

01:04:09.900 --> 01:04:11.800
yeah, enter,

01:04:12.740 --> 01:04:14.000
right, now,

01:04:14.360 --> 01:04:15.460
do the curl command now,

01:04:15.620 --> 01:04:17.900
do the curl command again,

01:04:18.880 --> 01:04:19.500
curl,

01:04:20.700 --> 01:04:21.440
http,

01:04:22.940 --> 01:04:24.840
colon, double slash,

01:04:25.200 --> 01:04:26.340
the public ip,

01:04:26.740 --> 01:04:27.580
type in ip affirmation,

01:04:27.720 --> 01:04:29.660
is ip correct, no, can you confirm,

01:04:29.880 --> 01:04:31.580
so I give you three measurements in lock-in,

01:04:31.700 --> 01:04:33.440
can you type in,

01:04:34.340 --> 01:04:34.780
ifconfig,

01:04:35.760 --> 01:04:37.440
ifconfig, one second, can you give the private

01:04:37.440 --> 01:04:39.200
type in 172, 31, 28,

01:04:39.320 --> 01:04:40.440
to 35, one minute,

01:04:42.000 --> 01:04:42.880
172, 31,

01:04:43.140 --> 01:04:44.980
which message in lock-in can you confirm,

01:04:46.220 --> 01:04:47.220
172, 31,

01:04:47.340 --> 01:04:49.400
28, to 35, one minute,

01:04:52.100 --> 01:04:52.540
172,

01:04:53.320 --> 01:04:53.760
31,

01:04:55.060 --> 01:04:55.940
what is the private ip,

01:04:58.000 --> 01:04:58.400
131,

01:04:58.540 --> 01:04:59.580
what do you see in the left side,

01:05:00.220 --> 01:05:01.280
131, what do you see there,

01:05:01.500 --> 01:05:02.880
28, to 35,

01:05:03.020 --> 01:05:05.060
13, 2, 1, 3, 49,

01:05:05.340 --> 01:05:07.000
12, okay, in the right mission,

01:05:07.480 --> 01:05:09.600
in the right mission you have done some

01:05:09.600 --> 01:05:11.500
errors in this checking, what could be the reason,

01:05:11.620 --> 01:05:13.220
one cylinder is checking in here,

01:05:13.380 --> 01:05:14.040
so my list number,

01:05:17.720 --> 01:05:18.400
type in

01:05:18.400 --> 01:05:20.000
dockerfile,

01:05:20.000 --> 01:05:22.520
dockerfile,

01:05:22.520 --> 01:05:24.380
dockerfile,

01:05:24.760 --> 01:05:27.900
cat, cat, cat, cat, cat, cat,

01:05:27.900 --> 01:05:31.780
C-A-T, space, Dockerfile, D-CAPS, type in that.

01:05:32.000 --> 01:05:33.140
No, no, no.

01:05:33.380 --> 01:05:35.740
Only D is capital, just file name.

01:05:37.540 --> 01:05:43.560
D, press tab, press tab, press tab, D, capital D,

01:05:43.580 --> 01:05:44.560
and press tab.

01:05:46.100 --> 01:05:48.580
Tab, yes, enter.

01:05:48.620 --> 01:05:51.980
Let me just check for this machine.

01:05:52.260 --> 01:05:54.200
So can you copy the IP in the browser?

01:05:54.380 --> 01:05:56.940
Once again, for some reasons,

01:05:56.940 --> 01:06:00.320
you see that it is not the port 80 is not going.

01:06:01.140 --> 01:06:03.440
So something is wrong and not properly run.

01:06:03.640 --> 01:06:08.620
Run, write an ID as 80, 80, equal to nginx 01.

01:06:10.940 --> 01:06:12.360
Something is wrong.

01:06:13.820 --> 01:06:14.520
Let me just check.

01:06:14.720 --> 01:06:18.020
I can see 80, 80, one minute.

01:06:19.080 --> 01:06:21.700
Nginx 01, all good.

01:06:23.960 --> 01:06:24.920
Something is blocking.

01:06:27.660 --> 01:06:29.420
So you have two images.

01:06:29.900 --> 01:06:34.020
So do a Docker PS F&A. Do a Docker PS F&A.

01:06:34.020 --> 01:06:36.580
I think I've got to create in the back end, let's see.

01:06:36.800 --> 01:06:40.900
Docker PS space, F&A, F&A.

01:06:41.800 --> 01:06:42.800
So this is a mistake.

01:06:43.300 --> 01:06:45.940
It's not created properly of the previous ones.

01:06:46.020 --> 01:06:47.240
You see, it's not getting started.

01:06:48.620 --> 01:06:51.300
Now do a Docker start to a Docker start,

01:06:51.300 --> 01:06:52.700
yeah, first one, the first container.

01:06:53.260 --> 01:06:54.480
First container, yeah.

01:06:54.780 --> 01:06:55.560
Double click, yes.

01:06:55.560 --> 01:06:58.720
Just copy and paste that, yes.

01:06:58.800 --> 01:07:00.600
So this is your second container, press Enter, yes.

01:07:00.700 --> 01:07:01.620
Now do a Docker PS.

01:07:01.720 --> 01:07:03.420
Now do a Docker PS.

01:07:04.200 --> 01:07:05.020
It's not starting.

01:07:06.680 --> 01:07:09.260
Something you have done, not for some reasons.

01:07:10.720 --> 01:07:12.300
Start, five minutes back.

01:07:12.760 --> 01:07:14.460
It's not starting for some reasons.

01:07:14.940 --> 01:07:16.120
So do a service.

01:07:17.540 --> 01:07:19.600
Service type is service.

01:07:20.520 --> 01:07:21.480
Now service.

01:07:22.460 --> 01:07:26.720
Service, S-E-R-V-I-C-E, service, service.

01:07:26.840 --> 01:07:27.880
E space, Docker.

01:07:29.640 --> 01:07:30.960
Space, start, Enter, yeah.

01:07:31.060 --> 01:07:36.580
Now again, do a Docker PS hyphen A, do a start.

01:07:36.720 --> 01:07:39.140
Do a Docker start on the container, ID, Enter.

01:07:40.280 --> 01:07:41.780
Yeah, do a PS, Docker PS.

01:07:43.040 --> 01:07:43.860
It's not starting.

01:07:45.240 --> 01:07:46.300
Something you have done.

01:07:46.360 --> 01:07:47.880
OK, I'm not sure.

01:07:48.100 --> 01:07:50.440
So the some reason is because the container's not

01:07:50.440 --> 01:07:53.660
getting started for some reasons.

01:07:54.420 --> 01:07:55.760
I'm not able to start it.

01:07:55.920 --> 01:07:57.820
Might be you did some mistakes with creating

01:07:57.820 --> 01:08:00.380
a container and this.

01:08:01.640 --> 01:08:02.440
So let's do something.

01:08:02.680 --> 01:08:03.980
So can you do a Docker?

01:08:04.380 --> 01:08:05.280
Type in Docker.

01:08:07.820 --> 01:08:10.820
Type in stop, stop.

01:08:11.800 --> 01:08:13.300
And use the dollar prompt.

01:08:13.580 --> 01:08:14.560
No, no, no, don't do like this.

01:08:14.680 --> 01:08:15.700
Use the dollar prompt.

01:08:16.460 --> 01:08:18.960
Dollar, shift and dollar.

01:08:19.300 --> 01:08:20.480
Dollar, dollar prompt.

01:08:21.540 --> 01:08:23.620
Yes, then open braces, open the brackets.

01:08:25.300 --> 01:08:27.300
Open, no, no, not this.

01:08:27.720 --> 01:08:32.520
Normal, not this one, another one, another one.

01:08:33.840 --> 01:08:37.580
Docker PS, Docker space PS.

01:08:38.700 --> 01:08:42.840
Space, close the brackets.

01:08:43.240 --> 01:08:44.280
Close it.

01:08:44.280 --> 01:08:45.520
Enter.

01:08:46.860 --> 01:08:51.120
Yeah, now use apparel.

01:08:51.240 --> 01:08:52.440
Use apparel once.

01:08:52.840 --> 01:08:54.780
Apparel on your laptop.

01:08:56.200 --> 01:08:56.700
Apparel.

01:08:57.120 --> 01:08:59.700
Yeah, instead of stop, make it RM.

01:09:00.700 --> 01:09:01.380
RM.

01:09:03.240 --> 01:09:03.580
RM.

01:09:05.360 --> 01:09:06.920
And inside, go inside.

01:09:07.240 --> 01:09:11.080
And instead of PS, use PS space hyphenate.

01:09:11.300 --> 01:09:12.740
He lets the PS be there, one space.

01:09:13.600 --> 01:09:17.540
And after PS, one space, and hyphenate.

01:09:18.000 --> 01:09:20.180
Space hyphenate, yeah, hyphenate.

01:09:20.500 --> 01:09:21.380
Yeah, enter, OK.

01:09:22.460 --> 01:09:26.020
Now, now control C, try and remove the containers.

01:09:27.100 --> 01:09:27.620
Do a clear.

01:09:27.740 --> 01:09:31.080
Now create a container now, Docker run hyphen D.

01:09:31.620 --> 01:09:38.000
Docker run hyphen D hyphen P hyphen P 80 space 80 colon 80.

01:09:38.960 --> 01:09:44.400
Number 80 colon 80 space nginx01, enter.

01:09:45.660 --> 01:09:47.380
Now do Docker PS.

01:09:47.700 --> 01:09:48.580
Let's see if this will start.

01:09:48.920 --> 01:09:49.220
OK.

01:09:49.860 --> 01:09:50.740
OK, I'm not sure.

01:09:50.900 --> 01:09:51.900
For some reasons, you're continuing

01:09:51.900 --> 01:09:53.240
on setting start it.

01:09:54.140 --> 01:09:56.520
So something, can you open Docker file again?

01:09:57.000 --> 01:09:58.820
Something on this 10 now.

01:09:59.260 --> 01:10:03.040
Cat, do a cat to Docker file.

01:10:04.560 --> 01:10:06.000
OK, or can do a history, please?

01:10:06.920 --> 01:10:11.680
Do a history, type in history, enter.

01:10:15.600 --> 01:10:17.420
OK, come down, come down.

01:10:19.040 --> 01:10:21.020
Control prompt, control C, do a clear.

01:10:21.720 --> 01:10:25.120
So try to do a Docker PS, hyphenate.

01:10:25.500 --> 01:10:28.920
Docker space PS hyphenate, now start it.

01:10:30.040 --> 01:10:31.660
For some reason, it's not in start it.

01:10:31.720 --> 01:10:35.120
Might be your servers or something, a problem, I feel.

01:10:35.720 --> 01:10:40.680
So Docker start the container ID.

01:10:47.300 --> 01:10:50.540
Yeah, so do a Docker PS, Docker space PS.

01:10:50.860 --> 01:10:51.980
OK, last try.

01:10:52.760 --> 01:10:55.080
Service, Docker restart.

01:10:55.420 --> 01:10:58.440
Service, Docker restart, space restart.

01:10:59.760 --> 01:11:01.660
So now I'm going to do the same thing, do a Docker start.

01:11:02.460 --> 01:11:05.680
Docker start command, start and the container ID, enter.

01:11:06.300 --> 01:11:08.180
Yeah, do a Docker PS, OK.

01:11:08.500 --> 01:11:09.980
See, Charles, what I understand

01:11:09.980 --> 01:11:13.900
is some configurations has got a problem.

01:11:14.520 --> 01:11:16.760
So what you can do is you have to remove.

01:11:16.940 --> 01:11:18.540
So do an apt, remove.

01:11:19.560 --> 01:11:22.840
APT, APT, APT, APT.

01:11:23.360 --> 01:11:25.800
APT, space remove, Docker.

01:11:26.700 --> 01:11:27.400
Docker.io.

01:11:29.660 --> 01:11:31.940
Yeah, Docker.io, enter.

01:11:32.420 --> 01:11:35.120
Some confusion, choose yes, why?

01:11:35.420 --> 01:11:38.000
Yeah, again, do an apt, space, install Docker.io.

01:11:38.220 --> 01:11:41.960
Something has gone, something has gone, .io, enter.

01:11:42.200 --> 01:11:45.080
OK, type in clear, nothing in the prompt.

01:11:46.380 --> 01:11:47.520
Yeah, use the apparel now.

01:11:47.540 --> 01:11:48.880
And again, create one more container,

01:11:49.040 --> 01:11:51.300
do a Docker run command, 8080.

01:11:51.580 --> 01:11:52.440
Run the same command.

01:11:53.320 --> 01:11:55.640
Use the apparels to go back to the previous commands.

01:11:56.280 --> 01:11:58.400
Please use apparels.

01:11:58.700 --> 01:11:59.900
Press the apparel.

01:12:00.440 --> 01:12:03.180
Just use the press, yes, yes, yes, apparel, once more.

01:12:03.540 --> 01:12:05.740
Once more, once more, once more, once more,

01:12:05.740 --> 01:12:07.940
once more, once more, once more.

01:12:08.180 --> 01:12:09.200
Yeah, yes.

01:12:09.460 --> 01:12:11.140
No, no, yes, press enter.

01:12:11.700 --> 01:12:14.800
Run the next command for starting your container.

01:12:15.680 --> 01:12:17.260
Once again, can you run the command

01:12:17.260 --> 01:12:18.120
which is in the chat?

01:12:18.420 --> 01:12:20.940
Now run the previous command, Docker run command again.

01:12:21.320 --> 01:12:22.820
You can use the apparel and run it.

01:12:23.380 --> 01:12:24.940
Use the apparel and run the same command

01:12:24.940 --> 01:12:26.680
which you used before, yes, enter.

01:12:27.460 --> 01:12:29.100
Yes, now do a Docker space PS.

01:12:29.260 --> 01:12:30.300
OK, I'm not sure.

01:12:30.600 --> 01:12:31.940
There is something that's happened.

01:12:32.280 --> 01:12:34.300
Might be, can you do the second machine

01:12:34.300 --> 01:12:36.100
and do the steps from the first?

01:12:36.220 --> 01:12:38.340
Yeah, yeah, yeah, yeah.

01:12:38.800 --> 01:12:40.480
The VM2, I've given you.

01:12:41.000 --> 01:12:43.300
OK, so apparently I'm going to talk about the backend.

01:12:43.440 --> 01:12:45.060
Something is wrong with VM something.

01:12:45.260 --> 01:12:46.700
Let me check to get on the break.

01:12:47.200 --> 01:12:49.700
Yeah, so can you do it offline?

01:12:51.440 --> 01:12:52.380
I'm going to stop sharing.

01:12:53.760 --> 01:12:55.840
Yes, yeah, you can share.

01:12:56.420 --> 01:12:57.640
OK, let me get the control.

01:12:57.640 --> 01:12:58.500
You don't see the screen now?

01:12:58.620 --> 01:12:59.920
Can you all see my screen now?

01:13:01.100 --> 01:13:01.160
OK.

01:13:01.160 --> 01:13:01.660
We're going to start it.

01:13:07.100 --> 01:13:08.320
Others, are you able to run this?

01:13:08.540 --> 01:13:10.160
Did you all get the output of public app in the browser?

01:13:10.200 --> 01:13:12.200
Did you all get the open page in the browser?

01:13:12.340 --> 01:13:13.620
Please confirm the chat, please.

01:13:13.840 --> 01:13:15.260
Sorry, is it your screen?

01:13:15.880 --> 01:13:16.460
Jin, correct?

01:13:17.980 --> 01:13:18.940
So do a curl.

01:13:19.240 --> 01:13:21.840
Type in curl, curl, no, curl, curl, curl.

01:13:22.600 --> 01:13:27.460
C-U-R-L-H-E-T-P, colon, double slash.

01:13:28.440 --> 01:13:31.280
Yeah, and public app, public app.

01:13:31.800 --> 01:13:34.160
Yeah, in the one which is this machine, public IP,

01:13:34.280 --> 01:13:36.560
this machine, when you're logged in,

01:13:36.780 --> 01:13:37.800
have a local host.

01:13:39.560 --> 01:13:40.760
Enter, it's coming.

01:13:41.200 --> 01:13:43.500
So it is your public app, it means the machine,

01:13:43.580 --> 01:13:45.580
the local host in which your machine installed.

01:13:45.900 --> 01:13:47.540
We're talking about that public app, clear?

01:13:48.140 --> 01:13:50.340
Yeah, so I think.

01:13:52.380 --> 01:13:53.380
OK, good now.

01:13:54.460 --> 01:13:56.660
To proceed, the next is your lab

01:13:56.660 --> 01:13:58.260
in which you're able to create the image.

01:13:58.360 --> 01:13:59.680
And you can go and make changes

01:13:59.680 --> 01:14:01.540
if required to the location.

01:14:01.900 --> 01:14:03.700
It's in this location, you can go and make changes.

01:14:04.480 --> 01:14:05.680
Let me do this, please observe.

01:14:05.980 --> 01:14:08.360
So now I have a container, for example.

01:14:13.220 --> 01:14:15.240
I'll go into the container,

01:14:16.440 --> 01:14:18.040
Docker exec-IT.

01:14:19.720 --> 01:14:20.600
This is my container.

01:14:39.960 --> 01:14:40.560
OK.

01:14:40.560 --> 01:14:42.220
Copy and paste in this.

01:14:43.540 --> 01:14:44.060
Full.

01:14:46.180 --> 01:14:47.380
Or more.

01:14:48.480 --> 01:14:49.480
And then I say patch.

01:14:50.660 --> 01:14:52.080
So now I go to location.

01:14:53.500 --> 01:14:55.920
VAR www.html.

01:14:56.260 --> 01:14:56.660
Yes.

01:14:57.660 --> 01:14:59.500
And inside this, we have a file.

01:14:59.520 --> 01:15:01.420
So I would say app update, for example.

01:15:01.420 --> 01:15:03.100
I want to install Vim Editor.

01:15:06.060 --> 01:15:06.920
I'm just trying to play around.

01:15:07.000 --> 01:15:09.640
So I'm going to say, install Vim Editor.

01:15:11.560 --> 01:15:13.520
So whatever contents were there in the index files

01:15:13.520 --> 01:15:14.160
are going to come up.

01:15:14.180 --> 01:15:16.380
I'm trying to modify my own custom.

01:15:20.280 --> 01:15:21.280
Entering Vim Editor.

01:15:21.840 --> 01:15:24.440
And now I'll say, vim-index.html.

01:15:26.400 --> 01:15:28.580
Now in this file now, I'll go down.

01:15:29.320 --> 01:15:31.160
This is my body, the background.

01:15:32.020 --> 01:15:32.560
All the colors.

01:15:34.200 --> 01:15:37.080
So now I want to modify some contents into it.

01:15:37.900 --> 01:15:38.620
This is your Apache page.

01:15:38.640 --> 01:15:39.000
See this?

01:15:39.000 --> 01:15:40.300
This is your heading, which you're getting it.

01:15:40.600 --> 01:15:42.540
So the contents are coming from this page.

01:15:43.580 --> 01:15:46.400
So I'm going to modify this to some other context.

01:15:46.560 --> 01:15:47.340
Just say, test.

01:15:47.340 --> 01:15:47.780
Yeah.

01:15:48.740 --> 01:15:53.000
And I'm going to save this file.

01:15:57.060 --> 01:16:01.520
So I'm talking about line number, which I'm updating.

01:16:04.260 --> 01:16:04.540
In here.

01:16:05.520 --> 01:16:06.660
And I save this file.

01:16:11.620 --> 01:16:13.020
I'll take it to.

01:16:25.000 --> 01:16:29.040
Let's save this sharing once again.

01:16:29.540 --> 01:16:31.740
Over there, I'm going to be working with it.

01:16:31.740 --> 01:16:33.600
I'm going to use it from here.

01:16:34.200 --> 01:16:35.520
So let's see.

01:16:40.520 --> 01:16:40.640
Yeah.

01:16:41.500 --> 01:16:46.120
And this is k colon wk.

01:16:47.320 --> 01:16:53.460
So now if I refresh it in here, you see the contents are getting modified.

01:16:54.880 --> 01:17:01.520
So a small example in which I am trying to update the contents and you see the contents are getting immediately updated in the browser.

01:17:03.000 --> 01:17:05.120
Did you understand what I did now, everyone?

01:17:10.160 --> 01:17:16.580
A simple example. So like this, you do some test and then you can push it to the repo.

01:17:17.660 --> 01:17:28.620
Okay, a task for you. I want you to do yourself. Let's see. I want the image which you created to be pushed to the repo.

01:17:29.240 --> 01:17:40.460
So you have in this image which you tested right now. I want you to push this image to the Docker Hub with the same repo which you did before.

01:17:40.640 --> 01:17:58.120
Is this task clear for everyone? I want this image to be seen in your Docker Hub. So it must come into your Docker Hub. Please do it.

01:17:58.600 --> 01:18:06.640
Yes, please start. Confirm once you're done. I request you to reinstall on a different machine, Docker, and check as it works.

01:18:06.780 --> 01:18:12.440
Please be aware of how to do. Let's see. Try to do the same. Try to tag it and push it. The same which I did before.

01:18:12.560 --> 01:18:22.120
Try to tag the image and push it to a Docker Hub. So do a Docker space tag. No, no, no. First you tag it. Tag it.

01:18:22.140 --> 01:18:36.180
Docker space tag. Copy the repo name, IMG01, 02, sorry, 02, and space your repo name in your Docker Hub, the complete name, which has your name Docker Hub.

01:18:36.200 --> 01:18:44.840
Yeah, colon. You need to have a name there. So after this, colon, colon, what name you want there? You can say that latest something. Yes.

01:18:46.600 --> 01:18:48.020
Good. Press enter.

01:18:49.560 --> 01:19:01.320
Now use the up arrow. Instead of tag, just use a push in the same command. Docker push. Yeah, remove the word. Yeah, there. You need not even have the image name.

01:19:01.800 --> 01:19:06.620
Image is not required. One more space. Delete it. No, no, no. Not required. Not required.

01:19:07.920 --> 01:19:10.320
Delete one space. Delete one space.

01:19:11.280 --> 01:19:13.920
Yeah, press enter. So now wait for some time.

01:19:15.140 --> 01:19:16.580
It's going to push this image.

01:19:17.680 --> 01:19:20.020
Every layer getting pushed. Now go back to your repo.

01:19:21.060 --> 01:19:29.020
And check if you see, refresh your repo and do you see a new image? Please confirm. Yes. Yes. Yes. This is an example about how you pushed.

01:19:29.020 --> 01:19:33.340
Okay, so now coming to gene, the same. Yeah, good.

01:19:34.120 --> 01:19:39.380
Colon, colon, gene, the end, press type in colon, colon, shift and semicolon button.

01:19:39.840 --> 01:19:43.580
Type in colon. Yeah, give some name. Yeah, the name what you want.

01:19:44.080 --> 01:19:50.760
So the image is local. You want to see the image, the new name in the browser. Okay, want to get same name. No issues. Press enter. Now do push.

01:19:52.040 --> 01:19:52.900
Use up arrow.

01:19:53.880 --> 01:19:58.320
Okay, that's fine. Whichever you want. Yeah, copy the complete after gene. Copy from gene.

01:19:59.680 --> 01:20:05.980
Copy and paste from gene. Yes. Enter. Yes. Now refresh your repository in your Docker Hub.

01:20:06.100 --> 01:20:08.900
We'll be seeing a new image now. You see this?

01:20:10.020 --> 01:20:11.440
Refresh. Yeah. Yeah.

01:20:11.440 --> 01:20:14.980
So it means that others can start using the image which you tested.

01:20:15.880 --> 01:20:19.800
Yeah, it's a simple process. So we were able to create an image.

01:20:20.280 --> 01:20:26.620
We saw that it worked in the browser and we shared with others. The others can start using the image.

01:20:26.760 --> 01:20:33.400
This is how enterprises, your SMEs would create an image and give access to you all.

01:20:33.460 --> 01:20:37.900
And then you start doing the same. Yeah.

01:20:39.220 --> 01:20:42.060
The last CK.

01:20:42.280 --> 01:20:43.640
Are we good? Okay. Okay.

01:20:44.100 --> 01:20:51.440
So in case you feel that it's taking more time in the lab, you can also observe mine and ask questions.

01:20:52.360 --> 01:21:00.160
Because sometimes the time and your speed and because of Linux issues you might be having. So I want you to ask questions.

01:21:00.620 --> 01:21:02.240
So I think we're good with Docker 5 now.

01:21:02.240 --> 01:21:07.980
Now next one is Docker Compose. So what is Docker Compose? Let me give an example.

01:21:08.140 --> 01:21:10.860
Now have you heard about the application WordPress?

01:21:12.420 --> 01:21:17.080
WordPress. What is WordPress? Anyone? WordPress application. What purpose we use this? Anyone?

01:21:17.860 --> 01:21:22.300
Okay. Do you all work on? Do you all know what's a blog? Everyone? What's a blog? Blog?

01:21:23.380 --> 01:21:26.660
Yes. No. A blog in which you would write in some content. Correct?

01:21:27.460 --> 01:21:28.280
Technical blogs.

01:21:29.820 --> 01:21:30.280
Website.

01:21:30.960 --> 01:21:40.340
So this will have two services. It will have WordPress and it uses MySQL. The blog, the front end is WordPress container and the back end is MySQL.

01:21:41.280 --> 01:21:43.620
So both needs to work together.

01:21:43.820 --> 01:21:48.900
So I have C1 and C2. So I can allow them to work together easily.

01:21:49.920 --> 01:21:51.460
That is Docker Compose.

01:21:52.140 --> 01:21:53.580
Are you understanding?

01:21:55.180 --> 01:22:02.460
If I have two containers and I want the two containers to work together, then I can use Docker Compose.

01:22:03.400 --> 01:22:04.340
Does it make sense? Everyone?

01:22:04.480 --> 01:22:09.920
I can put in the concentrations of both these of WebServe MySQL in one single file and they run together.

01:22:11.380 --> 01:22:15.080
So this will make my application. This is called Docker Compose.

01:22:16.000 --> 01:22:22.100
So using Docker Compose, you create templates and you can reuse the templates for different environments.

01:22:23.760 --> 01:22:24.600
So example.

01:22:26.000 --> 01:22:30.720
Now if we go to contents, we're talking about the lab.

01:22:31.880 --> 01:22:33.960
I use simple lab, lab four.

01:22:35.220 --> 01:22:41.380
This is my use case. So I have two containers running on. So host means node means on your host mission.

01:22:42.120 --> 01:22:44.140
I have two containers, WordPress and MySQL.

01:22:44.140 --> 01:22:46.900
And I want them to work together.

01:22:47.660 --> 01:22:53.800
And I also have a database. This is a container for database. I have a storage on my host.

01:22:54.580 --> 01:22:58.380
So even if I lose my container, I can still have the data on my host.

01:23:00.600 --> 01:23:05.780
So whenever you have something like this and you have multiple containers, you want to work together, then use Docker Compose.

01:23:06.420 --> 01:23:09.080
For this, I install Docker Compose.

01:23:11.160 --> 01:23:13.100
And we confirm Docker Compose version.

01:23:13.140 --> 01:23:15.620
And then what I do is create a WordPress folder.

01:23:17.140 --> 01:23:18.900
And inside that, create a YAML file.

01:23:19.660 --> 01:23:25.940
And I will call out the details of both the version of your Docker Compose file services.

01:23:26.080 --> 01:23:29.980
I'm first defining my DB details, which DB all the information.

01:23:31.420 --> 01:23:33.320
And we also define volumes.

01:23:38.700 --> 01:23:39.180
Sorry.

01:23:40.740 --> 01:23:43.240
Please speak out. Oh, OK. Voice problem. OK.

01:23:43.300 --> 01:23:49.700
So I've stopped my bandwidth for some reason, because using so much of bandwidth, we're also having labs getting more bandwidth.

01:23:50.180 --> 01:23:52.380
I've stopped my webcam. OK.

01:23:53.240 --> 01:23:55.720
OK. Did you understand what I explained till here?

01:23:55.980 --> 01:23:57.560
OK. Let's go step by step.

01:23:58.200 --> 01:24:01.660
First, can you all open the document of lab four? Open lab four document. Is it done?

01:24:01.660 --> 01:24:06.320
Now go down and run this command. Copy this complete command.

01:24:06.320 --> 01:24:08.460
It's going to download Docker Compose software.

01:24:08.580 --> 01:24:11.300
Go to terminal B under CD.

01:24:12.680 --> 01:24:13.800
Type in CD.

01:24:14.000 --> 01:24:15.500
It's been a default once.

01:24:16.680 --> 01:24:18.640
And paste that command.

01:24:20.640 --> 01:24:21.460
Paste it.

01:24:25.540 --> 01:24:27.680
And leave it. It will have something like this.

01:24:30.220 --> 01:24:33.440
And now you want to run this command. Copy.

01:24:35.000 --> 01:24:35.540
And paste.

01:24:39.620 --> 01:24:42.680
Now let me know the Docker Compose version.

01:24:47.860 --> 01:24:50.680
Confirm the Docker Compose version. Once you're done.

01:24:51.940 --> 01:24:55.760
The steps. Two commands. First one is to paste in the chat, please.

01:24:57.240 --> 01:25:01.400
What a version you see in the chat. Everyone 28.5. OK. Others OK.

01:25:01.800 --> 01:25:04.300
So this is how it installs. So what happened in here?

01:25:04.740 --> 01:25:09.520
This command downloaded the Docker Compose software from this location.

01:25:10.440 --> 01:25:15.900
Based on your architecture. So your name is a command in Linux to give you the kernel details.

01:25:16.220 --> 01:25:24.700
So based on your OS, it went ahead and download the software into user local bin Docker Compose in this location.

01:25:25.940 --> 01:25:28.660
And it does not have execute permissions.

01:25:30.120 --> 01:25:33.800
So we give execute permissions and hence we're able to see Docker Compose.

01:25:34.460 --> 01:25:41.400
Now type in Docker-Compose and press enter. Type in Docker-Compose and press enter.

01:25:43.000 --> 01:25:51.120
Now these are the commands which you can use for Docker Compose. You can use build, config, create, down, even, exec.

01:25:51.620 --> 01:25:54.600
All these are the commands which you can use for Docker Compose.

01:25:56.880 --> 01:25:58.240
So now.

01:25:59.400 --> 01:26:00.700
Create a directory.

01:26:02.120 --> 01:26:05.680
So create a directory for WordPress, for example.

01:26:06.040 --> 01:26:07.420
For Word, simple.

01:26:08.480 --> 01:26:13.480
Create a new directory. mkdir space word. Go inside this.

01:26:14.680 --> 01:26:15.640
cd word.

01:26:17.240 --> 01:26:20.620
And now copy the YAML file contents from the document.

01:26:22.120 --> 01:26:26.020
So copy the contents first to a notepad. Copy this to a notepad.

01:26:26.040 --> 01:26:28.320
It looks something like this. Let me explain.

01:26:28.740 --> 01:26:29.700
So you see double quotes.

01:26:31.640 --> 01:26:36.440
Could you please remove the double quotes? Word content copied like this from the terminal.

01:26:36.600 --> 01:26:39.420
So copy it, remove it and add the double quotes manually.

01:26:39.500 --> 01:26:46.280
Copy the YAML file contents from version till the end to a notepad.

01:26:46.320 --> 01:26:47.620
Till here it's supposed to copy.

01:26:48.840 --> 01:26:55.800
And after you copy it, go back to Docker and remove the double quotes and manually add the double quotes.

01:26:55.840 --> 01:26:56.940
Is it done? Okay.

01:26:57.460 --> 01:27:00.080
I'll be aware of how to use YAML.

01:27:00.320 --> 01:27:03.460
Do you work on YAML? Or no? Have you used YAML before? Or no?

01:27:04.420 --> 01:27:07.560
Anything is okay. If you want to use YAML file, let me talk very brief.

01:27:07.980 --> 01:27:09.700
So when you go to contents.

01:27:11.140 --> 01:27:12.380
In module 1.

01:27:13.060 --> 01:27:14.660
I give you YAML.

01:27:15.660 --> 01:27:22.660
So YAML is a language like JSON using which you write in the configurations.

01:27:23.600 --> 01:27:25.880
So YAML is for configuration language.

01:27:26.360 --> 01:27:29.180
So we can use XML, we can use JSON.

01:27:29.680 --> 01:27:32.200
The latest one is YAML.

01:27:32.480 --> 01:27:34.200
So YAML would look something like this.

01:27:34.560 --> 01:27:36.440
So example, you want to write YAML.

01:27:36.600 --> 01:27:38.000
This is how you write XML.

01:27:38.940 --> 01:27:40.280
This is how you write JSON.

01:27:40.860 --> 01:27:41.660
And this is how you write YAML.

01:27:42.600 --> 01:27:44.900
In YAML, you'll be having a heading.

01:27:45.300 --> 01:27:47.340
And if these all belong to the same level.

01:27:48.080 --> 01:27:49.220
Key, one space and value.

01:27:49.480 --> 01:27:50.560
Key, one space, value.

01:27:50.800 --> 01:27:52.120
Key, one space, value.

01:27:53.480 --> 01:27:54.800
Write something like this.

01:27:56.320 --> 01:27:57.780
So all of the key values press.

01:27:59.180 --> 01:28:02.120
Using arrays, it looks something like this.

01:28:03.020 --> 01:28:04.220
Actually it looks something like this.

01:28:04.240 --> 01:28:06.380
We have to write something like this in YAML.

01:28:06.580 --> 01:28:08.920
Docker compose requires YAML.

01:28:08.920 --> 01:28:11.520
And this is wrong because Indonesian is wrong.

01:28:11.620 --> 01:28:12.920
So you have to be very careful with Indonesian.

01:28:14.000 --> 01:28:15.940
So this is how YAML looks.

01:28:16.740 --> 01:28:20.920
So this now going to your Docker is a copy to a notepad.

01:28:21.980 --> 01:28:24.240
Let me explain to you what exactly is this happening.

01:28:24.920 --> 01:28:25.940
This is your version number.

01:28:26.140 --> 01:28:28.660
For Docker compose a file with version number.

01:28:29.800 --> 01:28:32.000
Docker services is a DB service.

01:28:32.500 --> 01:28:36.660
So this will go ahead and download the MySQL image from Docker Hub.

01:28:36.660 --> 01:28:39.740
And you go down you also see that a volume you're having.

01:28:40.260 --> 01:28:43.000
So this volume would get created on the host.

01:28:43.920 --> 01:28:47.800
And this volume was getting mapped into the container of database.

01:28:48.680 --> 01:28:52.780
It means what a change you do in this location of containers also get mapping on your host.

01:28:53.520 --> 01:28:55.140
The first component is your host.

01:28:55.220 --> 01:28:56.240
This is on your container.

01:28:57.300 --> 01:28:58.200
Restart always.

01:28:58.380 --> 01:29:03.140
Restart always is a parameter in Docker or container word technology.

01:29:03.140 --> 01:29:06.980
In which it will restart the agent in case there's a problem in the container.

01:29:08.040 --> 01:29:11.160
And these are variables for your password, username, and these.

01:29:11.340 --> 01:29:12.700
You're mapping your wordpress in here.

01:29:12.720 --> 01:29:15.200
So you're mapping them because of your variables.

01:29:15.940 --> 01:29:18.320
So you're calling up this in here and this in here something like this.

01:29:19.320 --> 01:29:21.500
And then you're saying wordpress depends on.

01:29:21.660 --> 01:29:23.200
So first this will get created, a DB.

01:29:24.200 --> 01:29:25.740
Then the second can get created.

01:29:26.020 --> 01:29:26.760
Depends on DB.

01:29:26.900 --> 01:29:29.240
It means once this is created it will get a new container.

01:29:29.980 --> 01:29:31.560
And which port you want to allow?

01:29:31.820 --> 01:29:35.580
Port 8000 on the internet and port 80 is in a container.

01:29:36.540 --> 01:29:39.240
So now I'm going to run this file.

01:29:40.080 --> 01:29:41.740
Copy the file.

01:29:42.440 --> 01:29:43.360
Run this.

01:29:44.680 --> 01:29:53.240
And run a file in a file called docker-wimp-docker-compose.yaml.

01:29:54.260 --> 01:29:56.020
Go to insert mode.

01:29:56.420 --> 01:29:59.240
And then say I want to paste it.

01:30:05.040 --> 01:30:06.160
I want to run it.

01:30:06.320 --> 01:30:09.240
So now I'll escape colon WQ.

01:30:09.940 --> 01:30:13.280
And then I'll say docker-compose up.

01:30:13.520 --> 01:30:15.020
Up means run it.

01:30:15.140 --> 01:30:16.540
Hyphen D in the background.

01:30:16.780 --> 01:30:17.580
Detach mode.

01:30:18.680 --> 01:30:19.320
So run it.

01:30:19.320 --> 01:30:26.340
It goes ahead and runs all those commands to pull the images of your MySQL first.

01:30:27.620 --> 01:30:28.700
It runs it.

01:30:29.480 --> 01:30:34.600
Then it will install your WordPress as per the lab it depends on.

01:30:35.640 --> 01:30:37.720
And it will create all the environment variables in the backend.

01:30:54.480 --> 01:30:55.440
In a container.

01:30:55.640 --> 01:30:56.900
So all steps have been done.

01:30:57.820 --> 01:30:59.000
Just observing here.

01:30:59.100 --> 01:31:01.280
So now if I do a docker images.

01:31:02.180 --> 01:31:05.940
You see it downloaded the images of Ubuntu and MySQL.

01:31:08.180 --> 01:31:09.160
And you see also WordPress.

01:31:09.660 --> 01:31:10.760
All this got downloaded.

01:31:11.360 --> 01:31:12.880
And if I do a docker ps.

01:31:12.880 --> 01:31:16.900
This will be the containers of MySQL and WordPress.

01:31:17.220 --> 01:31:22.380
So now what I do is the same which I did before.

01:31:23.200 --> 01:31:25.100
Instead of 80 the default.

01:31:25.800 --> 01:31:28.420
I'll say port number 8000.

01:31:28.940 --> 01:31:30.880
And you see the applications coming up.

01:31:32.000 --> 01:31:33.200
So frontend is your WordPress.

01:31:33.300 --> 01:31:37.240
If you do something it will also have a database in the back MySQL in the back.

01:31:37.280 --> 01:31:40.040
Yes. Did you understand?

01:31:40.040 --> 01:31:41.860
The lab. Everyone.

01:31:43.480 --> 01:31:44.140
The flow clear.

01:31:44.300 --> 01:31:47.220
So tomorrow if I want to recreate my application.

01:31:47.460 --> 01:31:48.260
I have the template.

01:31:49.240 --> 01:31:50.600
I can again rerun it.

01:31:50.960 --> 01:31:52.760
I can make in some different images.

01:31:53.260 --> 01:31:53.740
Configurations.

01:31:54.720 --> 01:31:58.400
So this is how I can use the same template to create multiple.

01:31:58.880 --> 01:31:59.360
Examples.

01:31:59.540 --> 01:32:01.140
Multiple use cases for a dev.

01:32:01.540 --> 01:32:01.760
Test.

01:32:03.980 --> 01:32:06.040
Please do it and confirm once you're done.

01:32:06.040 --> 01:32:07.760
So Charles is working now on a new VM.

01:32:13.740 --> 01:32:14.100
Some.

01:32:15.020 --> 01:32:15.240
Yeah.

01:32:16.120 --> 01:32:16.140
So.

01:32:16.280 --> 01:32:18.380
So be careful when you do something.

01:32:18.500 --> 01:32:21.580
Because sometimes ransom command directly on the force of these.

01:32:21.580 --> 01:32:22.560
It might get corrupted.

01:32:23.340 --> 01:32:26.680
So when you before on any command be careful before on the commands.

01:32:27.160 --> 01:32:29.380
Thank you.

01:32:30.820 --> 01:32:31.160
Jimmy.

01:32:31.460 --> 01:32:32.440
I don't see a screen.

01:32:34.200 --> 01:32:34.960
I'm not sure.

01:32:35.000 --> 01:32:36.320
I don't see June screen.

01:32:36.340 --> 01:32:37.700
I see one day a white screen.

01:32:39.080 --> 01:32:40.040
What happened?

01:32:40.080 --> 01:32:41.220
Are you putting a system or something?

01:32:41.500 --> 01:32:41.800
OK.

01:32:41.800 --> 01:32:42.320
Do the lab.

01:32:42.460 --> 01:32:43.360
The lab is done.

01:32:43.720 --> 01:32:43.920
Yes, Charles.

01:32:44.140 --> 01:32:46.360
Now access the public IP.

01:32:46.360 --> 01:32:46.840
Cool.

01:32:47.000 --> 01:32:48.420
8000 in the browser.

01:32:49.040 --> 01:32:49.520
HTTP.

01:32:50.180 --> 01:32:54.860
We're going to locally also HTTP colon double slash public IP colon 8000.

01:32:55.320 --> 01:32:55.460
Yeah.

01:32:55.700 --> 01:32:55.780
Yeah.

01:32:55.820 --> 01:32:56.460
I'm talking to you.

01:32:56.680 --> 01:32:58.340
So what I'm saying here is.

01:32:58.340 --> 01:32:58.780
Now.

01:33:04.440 --> 01:33:09.280
Flash public IP colon 8000 in a browser or on a local machine.

01:33:11.100 --> 01:33:12.340
And do you see the book presentation?

01:33:14.000 --> 01:33:14.460
This is something.

01:33:15.600 --> 01:33:17.360
You know, I see it because it's your.

01:33:19.620 --> 01:33:23.340
You know, if I say the public IP minus, for example.

01:33:25.160 --> 01:33:26.700
Local host also.

01:33:28.540 --> 01:33:30.340
The name local host was in here.

01:33:36.880 --> 01:33:37.600
Curve.

01:33:39.260 --> 01:33:40.600
Local host.

01:33:42.980 --> 01:33:45.200
Now I'll say local host colon.

01:33:45.640 --> 01:33:50.300
So either you can do public IP or you can say local host on your local.

01:33:50.300 --> 01:33:54.600
And then it will not come because the word doesn't come up.

01:33:55.140 --> 01:33:56.160
So you can see the browser.

01:33:56.800 --> 01:33:58.420
Are we good?

01:33:59.620 --> 01:34:00.020
The lab.

01:34:01.220 --> 01:34:01.420
OK.

01:34:01.420 --> 01:34:02.540
Now let's see some commands.

01:34:03.100 --> 01:34:05.980
So now there are different commands using which you can work with Docker Compose.

01:34:06.060 --> 01:34:07.160
We can use up.

01:34:07.440 --> 01:34:08.440
We can use PS.

01:34:09.080 --> 01:34:09.420
Stop.

01:34:09.820 --> 01:34:10.480
Locks and down.

01:34:10.520 --> 01:34:11.640
Let's play around with this.

01:34:12.840 --> 01:34:13.960
So let's do some operations.

01:34:15.900 --> 01:34:16.580
So now.

01:34:17.460 --> 01:34:18.900
Do a Docker Compose.

01:34:18.900 --> 01:34:25.220
So instead of using Docker images, I can see all those things using Docker Compose.

01:34:25.980 --> 01:34:29.440
So if I can use Docker Compose images.

01:34:30.240 --> 01:34:33.240
So these were created using Docker Compose.

01:34:33.820 --> 01:34:39.860
You don't just want a Docker PS, but a very specific one to understand what a Docker Compose you can say Docker Compose images.

01:34:40.640 --> 01:34:41.980
I can use PS.

01:34:45.340 --> 01:34:49.980
So I can see all the information that got created using Docker Compose.

01:34:55.620 --> 01:34:57.960
Now, for example, once the logs of it.

01:34:58.120 --> 01:34:58.980
Do a Docker Compose.

01:35:00.540 --> 01:35:01.280
And save logs.

01:35:02.220 --> 01:35:04.420
You can see all the logs of the environment.

01:35:09.920 --> 01:35:11.660
Are we clear?

01:35:15.360 --> 01:35:15.920
Everyone.

01:35:20.300 --> 01:35:20.740
OK.

01:35:21.120 --> 01:35:22.440
Now the next one.

01:35:23.260 --> 01:35:24.320
Now let's do a down.

01:35:24.440 --> 01:35:25.840
So I don't want this now.

01:35:25.840 --> 01:35:26.660
I want to terminate.

01:35:26.680 --> 01:35:29.940
So I can say Docker Compose down.

01:35:33.800 --> 01:35:35.500
It is stopping your containers.

01:35:36.580 --> 01:35:37.740
Now you go and refresh.

01:35:39.680 --> 01:35:40.640
It's not that.

01:35:41.280 --> 01:35:41.700
It's gone.

01:35:42.280 --> 01:35:43.860
Now just make it up.

01:35:44.080 --> 01:35:44.560
Just up.

01:35:44.580 --> 01:35:45.080
Observe it.

01:35:45.200 --> 01:35:47.540
See, just make it now say up this time.

01:35:48.320 --> 01:35:52.080
It will happen so quickly because it is having a copy on your host.

01:35:52.080 --> 01:35:53.460
So what do you do?

01:35:55.220 --> 01:35:59.160
Because it had a copy of the data on this location.

01:35:59.400 --> 01:36:04.680
A copy of the data on your host under db underscore data.

01:36:04.800 --> 01:36:07.500
Could you tell me where would this folder get created?

01:36:08.060 --> 01:36:08.660
In your host?

01:36:08.880 --> 01:36:09.520
In which location?

01:36:11.360 --> 01:36:12.020
Which path?

01:36:12.380 --> 01:36:13.060
We're not getting the path.

01:36:13.080 --> 01:36:13.840
Where does it get created?

01:36:13.940 --> 01:36:14.300
Anyone?

01:36:15.600 --> 01:36:17.680
The db underscore data on your host.

01:36:17.720 --> 01:36:18.640
Where did it get created?

01:36:19.720 --> 01:36:21.640
In which location?

01:36:29.460 --> 01:36:32.880
Esteem, the db underscore data is going to get in which location?

01:36:33.320 --> 01:36:33.640
What do you think?

01:36:34.700 --> 01:36:36.320
Which is your default directory of Docker?

01:36:38.360 --> 01:36:39.760
With the default directory of Docker?

01:36:40.020 --> 01:36:40.440
Yes.

01:36:40.940 --> 01:36:42.000
So go to the location.

01:36:42.480 --> 01:36:43.000
Where?

01:36:43.600 --> 01:36:44.020
Left?

01:36:45.080 --> 01:36:45.380
Docker.

01:36:46.440 --> 01:36:49.540
And under that you have volumes.

01:36:51.700 --> 01:36:54.300
And you see this here the word db data.

01:36:58.320 --> 01:37:00.720
And under that you have data.

01:37:00.720 --> 01:37:01.820
Keep on going inside.

01:37:03.960 --> 01:37:07.180
And you see this is the contents of your container.

01:37:09.220 --> 01:37:12.420
So even deleted you see that WordPress contents are there inside.

01:37:12.680 --> 01:37:13.720
The contents get mapped.

01:37:13.720 --> 01:37:16.960
And if you don't want these contents also.

01:37:18.100 --> 01:37:19.500
You can go to word.

01:37:22.220 --> 01:37:24.900
And you can also do a docker compose down.

01:37:26.200 --> 01:37:27.620
If you don't want even data in here.

01:37:28.560 --> 01:37:30.640
You can say docker compose down.

01:37:30.900 --> 01:37:31.720
Type in the volumes.

01:37:32.440 --> 01:37:34.020
Determine everything will get terminated.

01:37:34.300 --> 01:37:35.640
Even the data in the backend.

01:37:38.080 --> 01:37:39.280
Once I do a down.

01:37:39.500 --> 01:37:40.560
Last command in the document.

01:37:41.180 --> 01:37:41.920
Type in volumes.

01:37:41.920 --> 01:37:42.520
Run it.

01:37:42.600 --> 01:37:44.200
Remove everything.

01:37:45.300 --> 01:37:47.600
So now if I go to where?

01:37:48.420 --> 01:37:48.860
Docker.

01:37:50.540 --> 01:37:51.920
And if I.

01:37:53.320 --> 01:37:53.760
WordPress.

01:37:54.260 --> 01:37:55.000
You see here.

01:37:55.000 --> 01:37:55.800
Go to volumes.

01:37:57.760 --> 01:37:59.940
Under volumes I don't see the wordpress folder.

01:38:00.220 --> 01:38:00.640
It's gone.

01:38:00.840 --> 01:38:02.040
So if we just make it down.

01:38:02.620 --> 01:38:04.260
You will still have the data on the host.

01:38:05.000 --> 01:38:07.000
If you don't want even that data on the host.

01:38:07.160 --> 01:38:08.780
You need to use hyphen and volumes.

01:38:08.940 --> 01:38:10.700
It will delete the volumes even from the host.

01:38:10.700 --> 01:38:11.700
Have a good.

01:38:13.740 --> 01:38:14.960
And so much you're done.

01:38:17.300 --> 01:38:18.840
I think Joan you're good.

01:38:18.980 --> 01:38:19.860
Any questions?

01:38:21.440 --> 01:38:21.580
Okay.

01:38:22.000 --> 01:38:22.540
Good.

01:38:23.440 --> 01:38:24.820
Charles are you good?

01:38:29.560 --> 01:38:29.780
Charles.

01:38:30.700 --> 01:38:30.880
Yeah.

01:38:30.880 --> 01:38:32.560
Because you came out of server.

01:38:33.060 --> 01:38:34.080
You were in your window.

01:38:34.200 --> 01:38:35.280
You had to log into server.

01:38:36.760 --> 01:38:37.620
Be careful.

01:38:38.680 --> 01:38:42.200
So you have to again do SSH hyphen I the key and all.

01:38:42.360 --> 01:38:42.760
Are you getting it?

01:38:42.880 --> 01:38:44.940
You're not inside the VM.

01:38:45.320 --> 01:38:46.920
In which you did your Docker lab.

01:38:46.940 --> 01:38:47.620
We got it.

01:38:47.620 --> 01:38:48.320
Same steps.

01:38:48.500 --> 01:38:49.320
How do you can do initially.

01:38:50.360 --> 01:38:50.840
SSH.

01:38:50.840 --> 01:38:52.280
Hyphen I the key.

01:38:52.340 --> 01:38:53.700
Connect to the server.

01:38:55.080 --> 01:38:55.740
Log in a server.

01:38:55.980 --> 01:38:56.780
No, no, no, no.

01:38:56.820 --> 01:38:57.340
One space.

01:38:57.360 --> 01:38:57.840
Space.

01:38:57.940 --> 01:38:58.940
Initially after.

01:38:59.480 --> 01:39:00.440
H space.

01:39:00.440 --> 01:39:01.100
One space.

01:39:02.140 --> 01:39:02.300
Yeah.

01:39:05.500 --> 01:39:06.060
I think.

01:39:07.000 --> 01:39:07.480
Okay.

01:39:07.720 --> 01:39:08.380
At public IP.

01:39:09.160 --> 01:39:10.420
Now pseudo pseudo hyphen.

01:39:10.700 --> 01:39:11.180
Pseudo.

01:39:12.920 --> 01:39:13.400
Pseudo.

01:39:13.560 --> 01:39:14.040
SU.

01:39:14.660 --> 01:39:15.140
Pseudo.

01:39:15.300 --> 01:39:16.120
Space SU.

01:39:18.000 --> 01:39:18.480
SU.

01:39:20.140 --> 01:39:20.920
Space hyphen.

01:39:22.040 --> 01:39:22.460
Hyphen.

01:39:22.760 --> 01:39:23.000
Enter.

01:39:23.180 --> 01:39:23.320
Yeah.

01:39:23.400 --> 01:39:23.880
Now.

01:39:24.500 --> 01:39:24.960
Do LS.

01:39:26.220 --> 01:39:27.580
Check whether you have word folder.

01:39:28.040 --> 01:39:28.320
LS.

01:39:28.400 --> 01:39:28.780
Let's enter.

01:39:29.040 --> 01:39:30.200
Where did you create the word folder?

01:39:30.400 --> 01:39:31.060
Which location?

01:39:31.280 --> 01:39:33.120
I think it must be in the project one.

01:39:33.180 --> 01:39:33.880
Go to project one.

01:39:34.040 --> 01:39:35.080
CD project one.

01:39:35.080 --> 01:39:36.160
I think it is there.

01:39:36.560 --> 01:39:37.000
Enter.

01:39:37.480 --> 01:39:38.080
Project one.

01:39:40.280 --> 01:39:40.720
YS.

01:39:42.020 --> 01:39:42.380
YLS.

01:39:43.520 --> 01:39:44.800
Where is your folder of word?

01:39:44.800 --> 01:39:45.500
Where did you create it?

01:39:45.620 --> 01:39:46.440
It didn't get you.

01:39:46.500 --> 01:39:47.580
Why again doing it?

01:39:48.600 --> 01:39:49.220
Others are you good?

01:39:49.320 --> 01:39:50.020
Go next topic.

01:39:50.340 --> 01:39:52.700
You are looking different folder.

01:39:52.920 --> 01:39:54.100
Even different folder.

01:39:55.860 --> 01:39:56.360
You are wrong.

01:39:56.520 --> 01:39:57.540
What is the word folder?

01:39:57.740 --> 01:39:58.700
We created before.

01:39:58.840 --> 01:39:59.540
It is not there.

01:39:59.660 --> 01:40:00.480
Get one please.

01:40:01.800 --> 01:40:02.240
MKDIR.

01:40:03.360 --> 01:40:03.800
MKDIR.

01:40:04.740 --> 01:40:05.700
Space word.

01:40:06.320 --> 01:40:06.900
Yeah.

01:40:07.120 --> 01:40:08.260
Can you confirm the word?

01:40:08.840 --> 01:40:09.000
Yeah.

01:40:09.020 --> 01:40:10.000
Any name.

01:40:10.700 --> 01:40:12.260
Can you confirm Docker Compose installed?

01:40:12.480 --> 01:40:13.540
Docker hyphen compose.

01:40:15.060 --> 01:40:17.140
Type in Docker hyphen compose and version.

01:40:17.840 --> 01:40:18.420
Hyphen.

01:40:18.820 --> 01:40:19.680
No space please.

01:40:19.880 --> 01:40:20.380
Not here.

01:40:20.520 --> 01:40:21.400
After R.

01:40:21.560 --> 01:40:22.220
No space.

01:40:22.380 --> 01:40:23.420
Hyphen hyphen space.

01:40:23.720 --> 01:40:24.460
Hyphen hyphen version.

01:40:26.200 --> 01:40:26.780
Space.

01:40:27.600 --> 01:40:28.200
One space.

01:40:28.320 --> 01:40:29.220
Hyphen hyphen version.

01:40:29.300 --> 01:40:30.300
Where is Docker compose?

01:40:30.480 --> 01:40:31.260
I am not sure.

01:40:31.540 --> 01:40:33.420
Where did you install Docker compose?

01:40:33.420 --> 01:40:33.700
Okay.

01:40:33.700 --> 01:40:34.580
Type in exit.

01:40:34.740 --> 01:40:34.960
One second.

01:40:35.100 --> 01:40:36.620
Type in exit here.

01:40:36.860 --> 01:40:37.540
Type exit once.

01:40:37.780 --> 01:40:38.100
Only once.

01:40:38.240 --> 01:40:39.380
Please type in exit.

01:40:39.840 --> 01:40:40.320
EXIT.

01:40:40.640 --> 01:40:40.660
Yeah.

01:40:41.220 --> 01:40:42.780
Now run the command Docker.

01:40:43.640 --> 01:40:44.120
Compose.

01:40:44.180 --> 01:40:44.780
Hyphen compose.

01:40:44.960 --> 01:40:45.240
Hyphen version.

01:40:45.240 --> 01:40:45.760
Press enter.

01:40:46.080 --> 01:40:48.720
Where did you create all the Docker version before?

01:40:49.980 --> 01:40:50.860
Check the Docker version.

01:40:50.960 --> 01:40:52.280
Check Docker hyphen version.

01:40:52.560 --> 01:40:52.960
In this location.

01:40:53.220 --> 01:40:54.160
Charles we don't understand anything.

01:40:54.300 --> 01:40:55.480
Charles where did you install Docker?

01:40:55.500 --> 01:40:56.180
In which location?

01:40:56.340 --> 01:40:57.200
Do control C.

01:40:57.300 --> 01:40:57.980
Type in clear.

01:40:59.080 --> 01:40:59.500
Okay.

01:41:00.020 --> 01:41:00.900
Charles I am not sure.

01:41:01.400 --> 01:41:02.180
You need help us.

01:41:02.260 --> 01:41:02.400
Charles.

01:41:02.400 --> 01:41:06.020
You need to let us know where did you install Docker.

01:41:06.340 --> 01:41:06.760
Which machine.

01:41:07.300 --> 01:41:07.740
Which location.

01:41:10.200 --> 01:41:10.440
Others.

01:41:10.620 --> 01:41:11.440
Are we going to proceed?

01:41:12.760 --> 01:41:12.940
Yes.

01:41:13.100 --> 01:41:13.560
Joan.

01:41:14.120 --> 01:41:14.200
Jean.

01:41:14.440 --> 01:41:15.040
I think you're good.

01:41:15.240 --> 01:41:16.020
Run it.

01:41:16.340 --> 01:41:16.600
Is it done?

01:41:16.740 --> 01:41:17.020
No.

01:41:18.300 --> 01:41:19.500
You must be in that folder.

01:41:21.440 --> 01:41:21.640
CD.

01:41:21.720 --> 01:41:23.340
Type in CD.

01:41:23.920 --> 01:41:24.720
Space word.

01:41:25.160 --> 01:41:26.660
It will be in your word folder.

01:41:27.600 --> 01:41:29.320
Wherever the Docker compose file is there.

01:41:29.360 --> 01:41:29.560
No.

01:41:31.440 --> 01:41:32.000
CD.

01:41:32.180 --> 01:41:33.100
Space word.

01:41:33.100 --> 01:41:34.380
W.O.R.D.

01:41:36.300 --> 01:41:39.000
It must be in the location where you have written the YAML file.

01:41:41.200 --> 01:41:42.720
In this location now.

01:41:42.820 --> 01:41:43.000
No.

01:41:43.140 --> 01:41:43.260
No.

01:41:43.340 --> 01:41:43.620
One second.

01:41:43.720 --> 01:41:44.340
Do a list.

01:41:45.100 --> 01:41:45.700
Do a list.

01:41:45.860 --> 01:41:46.140
Understood.

01:41:46.960 --> 01:41:51.380
So you have to do any operation of Docker compose commands from this location.

01:41:51.680 --> 01:41:52.760
With Docker compose.

01:41:53.220 --> 01:41:53.780
Yes.

01:41:54.220 --> 01:41:54.780
Volumes.

01:41:56.440 --> 01:41:56.600
Yeah.

01:41:56.700 --> 01:41:57.980
Now it will terminate.

01:41:58.380 --> 01:41:58.900
Because.

01:41:58.900 --> 01:42:02.960
Because it needs to understand the location of Docker compose YAML.

01:42:03.180 --> 01:42:06.900
Either you be in the location or copy the path of Docker compose YAML so that it understands.

01:42:08.000 --> 01:42:08.280
Okay.

01:42:08.720 --> 01:42:09.200
Are we good?

01:42:09.320 --> 01:42:13.020
Whenever you have use case in enterprise in which you have to create.

01:42:13.220 --> 01:42:16.240
Or integrate multiple containers to work together.

01:42:16.560 --> 01:42:18.600
Then you need to use Docker compose.

01:42:20.360 --> 01:42:21.340
But a single host.

01:42:22.980 --> 01:42:24.700
Is going to create all in a single host.

01:42:24.860 --> 01:42:25.600
Next topic.

01:42:25.760 --> 01:42:27.280
So do you work on networking and volumes?

01:42:27.280 --> 01:42:27.860
Everyone.

01:42:27.980 --> 01:42:30.800
Do you work on volumes and storage in your projects?

01:42:32.440 --> 01:42:32.580
Yes.

01:42:32.660 --> 01:42:32.900
No.

01:42:33.020 --> 01:42:33.280
Yeah.

01:42:33.280 --> 01:42:33.480
Yeah.

01:42:33.480 --> 01:42:34.020
In your office.

01:42:34.060 --> 01:42:35.980
Do you work on volume storage?

01:42:36.240 --> 01:42:36.720
Generally.

01:42:38.140 --> 01:42:38.620
Not Docker.

01:42:38.880 --> 01:42:40.000
Other technologies of storage.

01:42:40.260 --> 01:42:40.440
Do you work?

01:42:40.880 --> 01:42:40.960
Like.

01:42:41.220 --> 01:42:41.440
Okay.

01:42:41.580 --> 01:42:41.840
No problem.

01:42:42.380 --> 01:42:44.620
So let me talk about volumes.

01:42:45.060 --> 01:42:45.440
Very please.

01:42:46.820 --> 01:42:48.380
Now there are different types of volumes.

01:42:48.880 --> 01:42:50.600
So volumes means like a storage.

01:42:52.120 --> 01:42:55.700
So you can have in the storage of the container like now we did.

01:42:55.700 --> 01:42:57.820
You can have the storage of the container.

01:42:58.160 --> 01:42:59.440
Outside the container.

01:43:00.880 --> 01:43:01.480
On the host.

01:43:01.740 --> 01:43:03.240
Or you could have on.

01:43:03.900 --> 01:43:04.600
The memory.

01:43:06.500 --> 01:43:08.460
Or other one is managed by Docker.

01:43:08.620 --> 01:43:09.920
So it means for example.

01:43:10.240 --> 01:43:14.080
I can say to create a mapping onto a folder like tmp.

01:43:15.420 --> 01:43:16.420
You define it.

01:43:16.700 --> 01:43:17.980
This is called as a buying port.

01:43:18.200 --> 01:43:18.860
It is managed by OS.

01:43:19.440 --> 01:43:22.040
The other one what you like to create is your Docker area.

01:43:22.220 --> 01:43:25.080
So this will be under where live Docker.

01:43:25.080 --> 01:43:26.320
And the third one.

01:43:26.320 --> 01:43:28.020
You could also create in a memory.

01:43:28.120 --> 01:43:29.360
So to create the memory.

01:43:29.540 --> 01:43:30.400
Of the host.

01:43:31.420 --> 01:43:33.120
So these are different options.

01:43:33.440 --> 01:43:34.800
So tmpfs is temporary.

01:43:35.740 --> 01:43:36.380
For memory.

01:43:37.920 --> 01:43:40.080
And this is something which you cannot share.

01:43:40.980 --> 01:43:41.940
Between containers.

01:43:42.180 --> 01:43:43.060
Only for one container.

01:43:44.980 --> 01:43:46.420
And this is only for Docker Linux.

01:43:46.620 --> 01:43:48.080
It doesn't support Docker for Windows.

01:43:48.180 --> 01:43:52.280
So this is to have in the data outside the container on the host memory.

01:43:53.240 --> 01:43:54.800
And this is only for temporary.

01:43:55.400 --> 01:43:57.800
And you don't get additional charges for this.

01:43:58.020 --> 01:43:59.080
Because using memory of the host.

01:43:59.200 --> 01:44:01.140
You don't get additional charges.

01:44:02.080 --> 01:44:03.360
Buying mount is where in.

01:44:03.420 --> 01:44:04.660
You can mention the path.

01:44:06.000 --> 01:44:06.760
On your host.

01:44:07.640 --> 01:44:09.420
And this path would get mapped.

01:44:09.440 --> 01:44:11.520
For example if you have MySQL container.

01:44:13.140 --> 01:44:15.700
And I can say to map it to a location.

01:44:15.900 --> 01:44:17.260
Like slash tmp.

01:44:18.060 --> 01:44:18.760
On my host.

01:44:19.780 --> 01:44:21.840
So what do you make changes in the container.

01:44:22.040 --> 01:44:23.840
You could also get a copy in your tmp.

01:44:23.840 --> 01:44:26.260
And even if you delete the container.

01:44:26.280 --> 01:44:28.140
You still can dirty the data from India.

01:44:28.320 --> 01:44:29.120
It's a persistent.

01:44:30.600 --> 01:44:31.700
This is based on file system.

01:44:31.860 --> 01:44:33.840
And Docker volumes is what right now is our example.

01:44:34.940 --> 01:44:36.260
It will create automatically.

01:44:36.600 --> 01:44:38.820
Under where live Docker.

01:44:38.860 --> 01:44:40.320
And this is very much preferred.

01:44:40.380 --> 01:44:42.460
Because I can use the same volumes.

01:44:42.480 --> 01:44:44.120
For Windows or Linux.

01:44:44.860 --> 01:44:46.420
It doesn't depend on the file system.

01:44:47.540 --> 01:44:48.960
And I can easily take backups.

01:44:49.300 --> 01:44:49.780
Manage.

01:44:49.820 --> 01:44:50.980
Because all Docker based.

01:44:50.980 --> 01:44:53.400
Very easy for you to take a backup.

01:44:53.920 --> 01:44:55.920
If you want to do a list of the volumes.

01:44:56.460 --> 01:44:58.580
All these we can use Docker commands.

01:44:59.460 --> 01:45:00.500
So this is managed by Docker.

01:45:00.860 --> 01:45:01.760
Very good.

01:45:02.020 --> 01:45:03.940
It's as for both Linux and Windows.

01:45:04.040 --> 01:45:06.480
You can share this volume with multiple containers.

01:45:08.180 --> 01:45:08.980
And much more better performance.

01:45:09.600 --> 01:45:11.920
Rather than the buying mount we talked about.

01:45:11.920 --> 01:45:12.620
Doing this.

01:45:12.920 --> 01:45:14.540
You say Docker volume create.

01:45:14.680 --> 01:45:15.740
And give the name of the volume.

01:45:16.720 --> 01:45:17.720
So Docker volume create.

01:45:17.720 --> 01:45:19.660
It will create a Docker volume.

01:45:20.480 --> 01:45:22.180
And if you want to use this.

01:45:22.400 --> 01:45:23.720
Say Docker 1-90.

01:45:25.440 --> 01:45:25.640
Name.

01:45:26.540 --> 01:45:27.580
This is the name of the container.

01:45:28.620 --> 01:45:29.800
Which volume you want to use.

01:45:30.240 --> 01:45:31.720
This is the volume on your host.

01:45:33.080 --> 01:45:33.880
There will be Docker.

01:45:34.520 --> 01:45:36.080
And this is getting mapped to your container.

01:45:36.560 --> 01:45:37.700
Under off data center.

01:45:38.140 --> 01:45:39.700
So this is the name of the container.

01:45:39.820 --> 01:45:40.860
This is the container name.

01:45:41.800 --> 01:45:43.340
This is the image name.

01:45:44.640 --> 01:45:45.520
This is your shell.

01:45:45.520 --> 01:45:48.160
And this is your mapping.

01:45:48.580 --> 01:45:49.240
On the host.

01:45:50.080 --> 01:45:51.680
And this is on your container.

01:45:51.880 --> 01:45:53.360
Whatever change I do in the container.

01:45:53.660 --> 01:45:54.720
Under off data center.

01:45:54.880 --> 01:45:56.940
It will also get copied on to.

01:45:57.360 --> 01:45:57.960
My data.

01:45:59.220 --> 01:46:01.300
Any time you can see what is in Docker.

01:46:01.360 --> 01:46:02.540
You can do a Docker inspect.

01:46:03.220 --> 01:46:03.900
The container.

01:46:05.580 --> 01:46:06.820
Or Docker inspect.

01:46:07.100 --> 01:46:07.720
The volume name.

01:46:08.680 --> 01:46:11.160
You can see what exactly the volume details.

01:46:11.400 --> 01:46:12.000
Where it is getting created.

01:46:12.000 --> 01:46:13.940
All the information.

01:46:14.800 --> 01:46:15.680
The Docker inspect.

01:46:15.840 --> 01:46:16.760
This is the container name.

01:46:17.180 --> 01:46:19.160
You see that it has a volume name.

01:46:20.180 --> 01:46:20.580
This.

01:46:20.820 --> 01:46:22.240
There is a map driver.

01:46:22.460 --> 01:46:23.620
Local and the properties.

01:46:23.880 --> 01:46:25.260
You can create, list.

01:46:25.880 --> 01:46:26.940
The same Docker model here.

01:46:27.080 --> 01:46:28.520
You can remove it if you are getting used.

01:46:28.660 --> 01:46:30.220
You might want to remove the containers first.

01:46:30.340 --> 01:46:31.220
And then you can do it.

01:46:31.220 --> 01:46:33.000
And you can also run it using the Docker file.

01:46:34.160 --> 01:46:35.640
Let's look into this in detail.

01:46:35.640 --> 01:46:37.980
So let's go to Docker volumes.

01:46:37.980 --> 01:46:39.340
So you can see this.

01:46:39.340 --> 01:46:41.580
Let me use the keyboard, Docker storage.

01:46:41.660 --> 01:46:43.920
This is your documentation.

01:46:44.240 --> 01:46:44.920
What do you mount?

01:46:45.220 --> 01:46:47.080
Bind mount, gfms mount.

01:46:48.000 --> 01:46:48.320
Testing.

01:46:49.120 --> 01:46:52.700
So do you feel that this hands-on is required for you?

01:46:53.980 --> 01:46:54.480
On volume.

01:46:54.660 --> 01:46:55.840
Do you feel that it is required?

01:46:55.880 --> 01:46:56.620
Then we can do it.

01:46:56.680 --> 01:46:58.740
If you feel that it is not required, you can skip the laps.

01:46:58.880 --> 01:46:59.700
Just for you.

01:47:00.160 --> 01:47:02.760
Because I want to understand what is more important for you.

01:47:04.360 --> 01:47:06.100
Do you need hands-on on this?

01:47:06.400 --> 01:47:07.240
Or no?

01:47:08.580 --> 01:47:09.180
Please confirm.

01:47:09.860 --> 01:47:11.180
Do you want to do a lab on this?

01:47:11.380 --> 01:47:11.640
Or no?

01:47:13.180 --> 01:47:14.360
This is yes or no?

01:47:14.840 --> 01:47:16.760
Okay, okay, okay.

01:47:17.660 --> 01:47:18.560
Okay, okay, fine.

01:47:19.200 --> 01:47:20.080
Is the concept clear?

01:47:20.220 --> 01:47:21.720
Did you get the theory of it, everyone?

01:47:21.880 --> 01:47:23.080
Okay, assume that it is good.

01:47:23.700 --> 01:47:24.660
Networking, next topic.

01:47:26.380 --> 01:47:28.340
Do you want to have a break?

01:47:28.540 --> 01:47:29.940
Or do you want to continue the next topic?

01:47:29.940 --> 01:47:30.800
Okay, fine.

01:47:31.040 --> 01:47:33.560
Now let me now talk about docker networking.

01:47:35.120 --> 01:47:36.160
So what is docker

01:47:36.160 --> 01:47:36.740
networking?

01:47:37.940 --> 01:47:39.560
So when you install docker,

01:47:40.360 --> 01:47:42.340
it creates default

01:47:42.340 --> 01:47:42.960
networks.

01:47:47.080 --> 01:47:48.120
So now

01:47:48.120 --> 01:47:49.460
example.

01:47:54.380 --> 01:47:55.900
If I say docker

01:47:55.900 --> 01:47:57.420
network ls.

01:47:57.420 --> 01:47:59.700
You see it

01:47:59.700 --> 01:48:01.160
creates the default networks.

01:48:03.720 --> 01:48:05.560
And the first network is a bridge.

01:48:06.240 --> 01:48:07.740
Second host, and

01:48:07.740 --> 01:48:09.040
none, local.

01:48:09.560 --> 01:48:11.520
It means this is used only within

01:48:11.520 --> 01:48:13.700
the same machine we are networking.

01:48:13.980 --> 01:48:15.140
Not across the machines.

01:48:15.400 --> 01:48:17.400
All these networks are within your same machine.

01:48:17.500 --> 01:48:18.640
This is your network ID.

01:48:19.240 --> 01:48:21.460
So now if I say docker inspector

01:48:22.980 --> 01:48:23.540
and

01:48:23.540 --> 01:48:24.820
if I say bridge.

01:48:25.820 --> 01:48:26.940
Now this

01:48:26.940 --> 01:48:28.800
would give an IP address.

01:48:29.740 --> 01:48:30.700
You see here?

01:48:31.160 --> 01:48:32.560
172 17

01:48:32.560 --> 01:48:34.000
0.0.16

01:48:35.720 --> 01:48:36.980
So this is the

01:48:36.980 --> 01:48:38.660
network from which

01:48:38.660 --> 01:48:40.720
containers get IP address.

01:48:41.940 --> 01:48:43.140
So all the containers

01:48:43.140 --> 01:48:44.620
get attached

01:48:44.620 --> 01:48:46.980
to a gateway of this bridge.

01:48:47.380 --> 01:48:49.360
The first one would get a gateway.

01:48:50.240 --> 01:48:50.940
And all

01:48:50.940 --> 01:48:53.040
the containers would be attached to the same

01:48:53.040 --> 01:48:53.400
gateway.

01:48:54.800 --> 01:48:57.040
And other container would get 020304

01:48:58.000 --> 01:48:59.040
like this.

01:48:59.280 --> 01:49:00.360
That is what a bridge network.

01:49:00.900 --> 01:49:02.860
So in default we create your default networks

01:49:02.860 --> 01:49:04.060
or your own networks.

01:49:04.720 --> 01:49:05.780
In a bridge network,

01:49:06.520 --> 01:49:08.740
which we observed, the network

01:49:08.740 --> 01:49:11.040
ranges 172 17

01:49:11.720 --> 01:49:12.760
0.0

01:49:12.760 --> 01:49:15.020
16. So this will get an IP

01:49:15.020 --> 01:49:17.500
of 172 17

01:49:17.500 --> 01:49:18.660
0.1.

01:49:18.840 --> 01:49:20.880
The first one. This will get the

01:49:20.880 --> 01:49:23.180
second IP, third IP, fourth IP

01:49:23.180 --> 01:49:24.980
like this. And they all

01:49:24.980 --> 01:49:26.420
connect to this gateway.

01:49:26.920 --> 01:49:28.740
So gateway is the connection

01:49:28.740 --> 01:49:29.840
to a network.

01:49:31.760 --> 01:49:32.360
Are we good?

01:49:33.480 --> 01:49:34.700
So this bridge network

01:49:34.700 --> 01:49:36.680
gives IPs, MAC addresses

01:49:36.680 --> 01:49:38.840
all these things for your containers.

01:49:39.660 --> 01:49:40.840
And now when I do a docker

01:49:40.840 --> 01:49:42.800
inspector bridge, you see that

01:49:42.800 --> 01:49:44.580
I can see all the containers listed.

01:49:45.340 --> 01:49:46.340
See 1

01:49:46.880 --> 01:49:48.640
2 3

01:49:48.640 --> 01:49:50.500
I have 3 containers now.

01:49:50.640 --> 01:49:53.400
And all these 3 are connected to the network.

01:49:54.840 --> 01:49:55.740
Are we good?

01:50:03.280 --> 01:50:04.240
Please confirm.

01:50:05.580 --> 01:50:06.640
If any doubts you can ask me.

01:50:11.160 --> 01:50:12.760
Now let's do an inspector container.

01:50:13.280 --> 01:50:14.920
I say docker

01:50:15.560 --> 01:50:16.060
inspector

01:50:16.960 --> 01:50:18.060
The first container.

01:50:37.700 --> 01:50:40.500
And you see the container's IP address.

01:50:42.200 --> 01:50:43.500
It gets a MAC address.

01:50:44.200 --> 01:50:45.540
And connects to a gateway.

01:50:47.260 --> 01:50:47.520
So

01:50:48.120 --> 01:50:49.500
this is what we are talking about

01:50:50.020 --> 01:50:51.400
using networking components.

01:50:53.320 --> 01:50:54.520
So this is what

01:50:54.520 --> 01:50:55.740
your bridge network provides.

01:50:55.900 --> 01:50:57.520
Any questions? We feel that

01:50:57.520 --> 01:50:59.600
not clear you can ask me because we have to proceed.

01:50:59.820 --> 01:51:01.560
Silence sometimes doesn't make me

01:51:01.560 --> 01:51:03.760
understand if we are good or not. Which format?

01:51:20.300 --> 01:51:21.380
So docker

01:51:21.380 --> 01:51:23.800
inspect space the container

01:51:23.800 --> 01:51:24.940
name or the ID.

01:51:29.100 --> 01:51:31.720
And in that I go and see the network portions.

01:51:43.640 --> 01:51:46.060
Yes, so your question is can we

01:51:46.060 --> 01:51:47.500
modify network of

01:51:47.500 --> 01:51:49.520
network for containers. Is that a question?

01:51:51.680 --> 01:51:53.860
It depends on your

01:51:53.860 --> 01:51:55.960
organization. Sometimes

01:51:55.960 --> 01:51:57.500
they say that

01:51:58.260 --> 01:51:59.420
if you want to

01:51:59.420 --> 01:52:01.580
this is a default. But tomorrow

01:52:01.580 --> 01:52:03.920
you might get a requirement that your

01:52:03.920 --> 01:52:05.560
container application

01:52:06.400 --> 01:52:07.760
has to be

01:52:07.760 --> 01:52:09.700
on a specific network range. That is

01:52:09.700 --> 01:52:12.300
they might ask that you need to have a

01:52:12.300 --> 01:52:14.260
different network in this range for example.

01:52:14.600 --> 01:52:15.300
Getting it?

01:52:15.760 --> 01:52:17.900
So tomorrow then you have to create a new

01:52:17.900 --> 01:52:18.480
network

01:52:19.940 --> 01:52:21.880
and then create a container in that

01:52:21.880 --> 01:52:24.280
network of 192.

01:52:26.600 --> 01:52:28.400
If you don't change the default

01:52:28.400 --> 01:52:29.800
it gets 132

01:52:29.800 --> 01:52:31.500
this range what I just showed you.

01:52:31.900 --> 01:52:33.360
But in case you want to contain

01:52:33.360 --> 01:52:34.540
a different network

01:52:35.300 --> 01:52:37.700
then you have to say docker

01:52:39.200 --> 01:52:40.240
network create

01:52:40.240 --> 01:52:42.540
a network in that range and then get a

01:52:42.540 --> 01:52:43.640
container inside it.

01:52:45.020 --> 01:52:45.880
That's my answer.

01:52:47.100 --> 01:52:48.600
So in default it is not required

01:52:48.600 --> 01:52:50.600
it comes automatically. But

01:52:50.600 --> 01:52:52.380
still if you want you create

01:52:52.380 --> 01:52:54.580
a user defined network. You create

01:52:54.580 --> 01:52:56.620
something like that.

01:52:56.620 --> 01:52:58.120
I'll show you how to do it also.

01:52:58.280 --> 01:53:00.140
So in default it looks something like this.

01:53:00.800 --> 01:53:02.240
So docker 0 is the network

01:53:02.240 --> 01:53:03.920
which does all these in the default.

01:53:05.280 --> 01:53:06.600
And all these containers

01:53:06.600 --> 01:53:08.280
they can ping to each other because

01:53:08.280 --> 01:53:09.960
they all are connected to the same gateway.

01:53:11.540 --> 01:53:12.460
So example all these

01:53:12.460 --> 01:53:14.340
three can ping to each other because they all

01:53:14.340 --> 01:53:15.180
come to same network.

01:53:16.520 --> 01:53:18.280
So how do you do it? You can check it. For example

01:53:19.000 --> 01:53:20.280
I have in docker

01:53:22.440 --> 01:53:22.900
ps

01:53:24.420 --> 01:53:26.040
I'll log in the first container.

01:53:27.820 --> 01:53:28.280
So

01:53:28.280 --> 01:53:30.780
login to

01:53:31.720 --> 01:53:32.520
the first

01:53:32.520 --> 01:53:34.180
container docker exec hyper

01:53:34.180 --> 01:53:36.640
19 and then

01:53:36.640 --> 01:53:37.240
hopeful

01:53:38.400 --> 01:53:40.060
hopeful is the IP of each one.

01:53:40.080 --> 01:53:43.000
Let's do the IP of each one.

01:53:43.100 --> 01:53:44.140
So I'll do a docker

01:53:44.140 --> 01:53:46.140
inspect bridge for example.

01:53:47.540 --> 01:53:48.400
And this is IPs.

01:53:48.780 --> 01:53:50.940
So 17234

01:53:50.940 --> 01:53:52.620
So hopeful is 4.

01:53:53.100 --> 01:53:54.900
From this I'm going to ping to

01:53:54.900 --> 01:53:56.720
17.0.3. That's my

01:53:56.720 --> 01:53:58.640
use case. So I'm going to

01:53:58.640 --> 01:53:59.140
login

01:54:00.060 --> 01:54:02.720
and ping to 172.

01:54:03.120 --> 01:54:04.640
So I'll say

01:54:04.640 --> 01:54:06.580
docker exec

01:54:06.580 --> 01:54:08.640
hyper 19

01:54:08.640 --> 01:54:10.040
hopeful

01:54:11.460 --> 01:54:12.200
underscore

01:54:12.200 --> 01:54:14.700
4 and

01:54:14.700 --> 01:54:16.640
I'm going to say bash.

01:54:17.500 --> 01:54:18.640
I'm going to use

01:54:18.640 --> 01:54:20.640
apt update again with install ping utility

01:54:20.640 --> 01:54:22.180
at install ping utility.

01:54:25.520 --> 01:54:27.140
And then I install

01:54:27.140 --> 01:54:28.860
ip utils

01:54:28.860 --> 01:54:30.640
hyper ping.

01:54:31.580 --> 01:54:32.940
So I ping in here.

01:54:36.060 --> 01:54:37.260
And now

01:54:37.260 --> 01:54:38.640
I do a ping

01:54:38.640 --> 01:54:40.740
five times for example

01:54:40.740 --> 01:54:42.540
to 172.

01:54:43.060 --> 01:54:44.640
17.0.3

01:54:46.140 --> 01:54:46.980
I'm going to

01:54:46.980 --> 01:54:48.200
ping because

01:54:48.200 --> 01:54:50.520
they are in the same network.

01:54:51.500 --> 01:54:52.800
Because they all connect the same

01:54:52.800 --> 01:54:54.720
gateway. They have to ping

01:54:54.720 --> 01:54:56.940
to each other. Are we clear?

01:55:00.700 --> 01:55:02.940
Yes. This is how

01:55:02.940 --> 01:55:05.380
the default works. But sometimes

01:55:05.380 --> 01:55:07.160
you might want to create your own network.

01:55:07.780 --> 01:55:08.900
It might be you want to

01:55:08.900 --> 01:55:10.860
contain a different network as a use case of

01:55:10.860 --> 01:55:13.020
your organization. So for doing

01:55:13.020 --> 01:55:14.880
that we create networks.

01:55:15.840 --> 01:55:16.940
What you create networks

01:55:18.280 --> 01:55:19.320
by yourself

01:55:19.320 --> 01:55:20.940
are called as

01:55:20.940 --> 01:55:22.660
user defined networks.

01:55:24.220 --> 01:55:25.040
So you can create a network

01:55:25.040 --> 01:55:27.180
by default. You can create a bridge network.

01:55:27.720 --> 01:55:28.920
Those are called as user

01:55:28.920 --> 01:55:30.980
defined networks. Let me show you how

01:55:30.980 --> 01:55:32.720
you do this.

01:55:33.980 --> 01:55:35.480
So user defined

01:55:35.480 --> 01:55:36.160
networks

01:55:37.780 --> 01:55:38.940
is the network

01:55:38.940 --> 01:55:40.200
which you create.

01:55:41.780 --> 01:55:42.840
You create a network.

01:55:43.460 --> 01:55:45.000
So example if you want to get

01:55:45.000 --> 01:55:47.060
a network you can say docker

01:55:47.920 --> 01:55:48.480
network

01:55:49.880 --> 01:55:50.440
create

01:55:51.960 --> 01:55:53.060
and we can give

01:55:53.060 --> 01:55:55.060
a subnet change. You can subnet. I can

01:55:55.060 --> 01:55:56.980
say subnet

01:55:57.920 --> 01:55:58.480
equals

01:55:58.480 --> 01:56:00.580
like 192

01:56:01.820 --> 01:56:02.480
168.0

01:56:03.440 --> 01:56:04.580
and you also need

01:56:04.580 --> 01:56:06.540
to put the gateway. So gateway

01:56:06.540 --> 01:56:07.440
with the first IP

01:56:09.420 --> 01:56:10.700
equals 192

01:56:11.460 --> 01:56:12.660
168. The first

01:56:12.660 --> 01:56:14.440
IP in this 0.1

01:56:14.440 --> 01:56:16.540
and then you need

01:56:16.540 --> 01:56:18.320
to mention network name network

01:56:19.360 --> 01:56:20.000
1.

01:56:20.980 --> 01:56:22.620
So what will happen? You create

01:56:22.620 --> 01:56:24.760
network name network 1

01:56:24.760 --> 01:56:26.340
with this subnet

01:56:26.340 --> 01:56:27.580
and this gateway.

01:56:28.720 --> 01:56:30.260
Then I can create continuous

01:56:30.260 --> 01:56:32.600
network. Let me show you

01:56:32.600 --> 01:56:34.260
small example. So to get

01:56:34.260 --> 01:56:36.340
all networks I can say docker

01:56:36.340 --> 01:56:38.460
network create

01:56:38.460 --> 01:56:40.340
and I give a subnet

01:56:42.220 --> 01:56:43.920
and I can say

01:56:43.920 --> 01:56:46.980
192.168.0.0

01:56:46.980 --> 01:56:47.800
slash 16

01:56:48.340 --> 01:56:50.680
and the first IP

01:56:51.660 --> 01:56:52.580
will be

01:56:52.580 --> 01:56:55.140
192.168.0.1

01:56:55.140 --> 01:56:58.020
and then I give a network name

01:56:58.020 --> 01:56:59.020
that network 1.

01:56:59.180 --> 01:57:00.260
The network is created.

01:57:01.700 --> 01:57:03.320
How do I confirm? I do a

01:57:03.320 --> 01:57:04.660
docker network

01:57:06.240 --> 01:57:06.800
ls

01:57:07.640 --> 01:57:08.980
Let me make this font

01:57:08.980 --> 01:57:11.600
much more bigger.

01:57:23.000 --> 01:57:23.880
Are you able

01:57:23.880 --> 01:57:25.140
to see it clearly?

01:57:27.020 --> 01:57:27.500
The font

01:57:27.500 --> 01:57:28.680
is it good?

01:57:31.340 --> 01:57:33.160
Make it bigger still.

01:57:33.860 --> 01:57:34.740
It is 16

01:57:34.740 --> 01:57:36.040
I can make it to

01:57:36.040 --> 01:57:36.980
18

01:57:38.260 --> 01:57:39.200
and select.

01:57:39.820 --> 01:57:40.420
Okay.

01:57:42.780 --> 01:57:43.700
So do

01:57:43.700 --> 01:57:45.660
network are created. So I can now

01:57:45.660 --> 01:57:47.340
do a docker inspect

01:57:48.100 --> 01:57:49.120
network 1

01:57:49.840 --> 01:57:51.720
and you see it got IP in this

01:57:51.720 --> 01:57:52.300
range.

01:57:54.540 --> 01:57:54.800
Yeah.

01:57:55.600 --> 01:57:57.700
So if I want to continue this network what I do?

01:57:58.980 --> 01:57:59.720
I would say

01:57:59.720 --> 01:58:01.440
docker run

01:58:01.440 --> 01:58:02.760
hyphen d

01:58:04.140 --> 01:58:05.580
and I can say

01:58:07.060 --> 01:58:07.820
give a name

01:58:07.820 --> 01:58:09.440
for the container new

01:58:10.160 --> 01:58:11.520
and I can mention

01:58:11.520 --> 01:58:13.600
network name as

01:58:13.600 --> 01:58:14.800
network 1

01:58:15.440 --> 01:58:17.160
and then the image.

01:58:18.920 --> 01:58:19.580
I create a

01:58:19.580 --> 01:58:21.020
container with name new

01:58:21.020 --> 01:58:22.580
in this network.

01:58:24.100 --> 01:58:25.780
And now I will do a docker

01:58:25.780 --> 01:58:26.500
inspect

01:58:27.460 --> 01:58:29.140
the name of the container

01:58:29.860 --> 01:58:31.320
and you will see the container

01:58:31.320 --> 01:58:33.560
got IP in that range.

01:58:36.300 --> 01:58:36.940
Are we clear?

01:58:42.540 --> 01:58:43.000
Yeah.

01:58:43.360 --> 01:58:45.040
So we can create any networks

01:58:45.040 --> 01:58:47.200
any range and get container.

01:58:47.280 --> 01:58:49.060
These are called as user defined

01:58:49.660 --> 01:58:50.120
networks.

01:58:54.740 --> 01:58:55.200
Are this

01:58:55.200 --> 01:58:57.340
are we getting it? What is defined

01:58:57.900 --> 01:58:58.940
and user defined networks?

01:59:02.200 --> 01:59:03.260
We are going to do a lab.

01:59:03.360 --> 01:59:04.640
I want to give some time for a lab.

01:59:04.640 --> 01:59:05.920
This observe right now.

01:59:06.060 --> 01:59:09.060
We have a lab now. This observe right now.

01:59:09.220 --> 01:59:10.440
We have a lab time.

01:59:11.620 --> 01:59:12.740
You want you can do it.

01:59:13.880 --> 01:59:14.900
You want you can do it. It's up to you.

01:59:14.960 --> 01:59:16.660
Okay. Now the next one

01:59:16.660 --> 01:59:18.820
learned about what is user defined

01:59:18.820 --> 01:59:19.640
and this.

01:59:21.200 --> 01:59:22.580
So now if I have two

01:59:22.580 --> 01:59:24.280
networks right now in your host

01:59:25.580 --> 01:59:26.800
can this and this

01:59:26.800 --> 01:59:28.460
communicate now? This is my machine which

01:59:28.460 --> 01:59:30.920
have two networks. This is network 1

01:59:30.920 --> 01:59:32.640
and this is network 2.

01:59:33.260 --> 01:59:34.820
A container in this

01:59:34.820 --> 01:59:36.780
C1 and C2. Can they communicate?

01:59:37.960 --> 01:59:38.800
Can they ping each other?

01:59:38.860 --> 01:59:40.240
What do you think?

01:59:41.420 --> 01:59:43.480
Session clear? Everyone please try to answer.

01:59:44.220 --> 01:59:44.860
Two networks.

01:59:45.080 --> 01:59:46.720
Network 1 and network 2.

01:59:47.840 --> 01:59:48.740
Can they communicate

01:59:48.740 --> 01:59:50.880
each other? Yeah.

01:59:51.220 --> 01:59:51.920
And this is no.

01:59:52.140 --> 01:59:52.680
This is no.

01:59:53.500 --> 01:59:54.720
This is networks.

01:59:56.480 --> 01:59:58.920
So in case if you want to allow

01:59:58.920 --> 02:00:00.080
them to communicate

02:00:00.080 --> 02:00:02.460
we have to use

02:00:02.460 --> 02:00:04.320
something called

02:00:04.320 --> 02:00:05.600
Docker Network Connect.

02:00:06.740 --> 02:00:08.700
So you can allow them to communicate

02:00:08.700 --> 02:00:10.820
by using Docker Network Connect.

02:00:11.380 --> 02:00:12.220
Wherein you can

02:00:12.220 --> 02:00:14.580
mention that you want this container

02:00:14.580 --> 02:00:15.760
if you have C1

02:00:15.760 --> 02:00:18.440
and if you have C2 and C3

02:00:18.440 --> 02:00:19.940
for example in this network.

02:00:21.640 --> 02:00:22.260
You can say

02:00:22.260 --> 02:00:24.280
to connect C1 to these.

02:00:25.320 --> 02:00:26.520
So once you say this

02:00:26.520 --> 02:00:28.220
C1 would get

02:00:28.220 --> 02:00:30.320
secondary IP in this

02:00:30.320 --> 02:00:31.180
range.

02:00:32.140 --> 02:00:34.040
So you say Docker Network Connect

02:00:34.040 --> 02:00:36.100
C1 with this network.

02:00:36.220 --> 02:00:38.080
Network 1.

02:00:39.620 --> 02:00:40.240
The C1

02:00:40.240 --> 02:00:42.480
would get a secondary IP in this range.

02:00:43.000 --> 02:00:44.200
And they can connect to each other.

02:00:44.700 --> 02:00:46.540
So what I'm saying let me draw and explain.

02:00:47.560 --> 02:00:48.500
And this is

02:00:48.500 --> 02:00:50.020
my host machine right now.

02:00:50.020 --> 02:00:51.460
And I have two networks.

02:00:52.900 --> 02:00:53.980
Network 1.

02:00:55.240 --> 02:00:56.520
And I have network 2.

02:00:56.520 --> 02:00:58.620
I have two containers in this

02:00:58.620 --> 02:01:00.180
C1 and C2.

02:01:01.000 --> 02:01:02.400
And I have C3 and

02:01:02.400 --> 02:01:03.800
C4 in this network.

02:01:05.360 --> 02:01:06.680
This network range

02:01:06.680 --> 02:01:08.520
is 192, 168,

02:01:09.640 --> 02:01:11.140
0.0 star 16.

02:01:11.700 --> 02:01:12.900
And this network range

02:01:12.900 --> 02:01:14.600
could be something like this.

02:01:14.660 --> 02:01:16.780
Now these two would get primary IP from this.

02:01:16.820 --> 02:01:17.600
They communicate.

02:01:19.060 --> 02:01:20.800
But this cannot communicate with this

02:01:20.800 --> 02:01:21.940
because we don't have a network.

02:01:23.500 --> 02:01:24.720
But my use case is

02:01:24.720 --> 02:01:26.840
Can it communicate from this to this? Yes you can do it.

02:01:26.840 --> 02:01:28.720
For that you say a command

02:01:30.420 --> 02:01:32.140
Docker Network Connect

02:01:33.280 --> 02:01:34.740
You cannot mention the complete

02:01:34.740 --> 02:01:36.560
bridge. You have to mention the container

02:01:37.560 --> 02:01:38.880
C1 and say

02:01:38.880 --> 02:01:40.720
that I want to connect to network 2.

02:01:42.120 --> 02:01:42.700
Rather than

02:01:42.700 --> 02:01:45.040
this command. Once you run this command

02:01:45.040 --> 02:01:46.780
C1 would also get

02:01:46.780 --> 02:01:48.780
an IP in this range.

02:01:49.840 --> 02:01:50.760
So it will have a secondary

02:01:50.760 --> 02:01:52.200
IP in this range.

02:01:52.200 --> 02:01:54.260
C3 and C4

02:01:54.260 --> 02:01:56.300
and C1, C3, C4

02:01:56.300 --> 02:01:57.960
they all can communicate each other.

02:01:58.100 --> 02:01:59.740
That's what we are talking about Docker Network Connect.

02:01:59.920 --> 02:02:01.860
I want you to do the lab

02:02:01.860 --> 02:02:04.200
together now.

02:02:04.820 --> 02:02:06.280
Can you do a lab 7 first

02:02:06.280 --> 02:02:06.880
yourself?

02:02:08.660 --> 02:02:09.040
Do a lab.

02:02:09.940 --> 02:02:10.420
Yes.

02:02:12.180 --> 02:02:13.040
One by one.

02:02:13.920 --> 02:02:15.340
See I cannot

02:02:15.340 --> 02:02:17.600
the Docker Network Connect syntax

02:02:18.200 --> 02:02:19.560
does not have a bridge.

02:02:19.560 --> 02:02:21.680
You cannot mention a network

02:02:21.680 --> 02:02:23.540
name there. Let me show you the syntax.

02:02:24.220 --> 02:02:25.880
So do a Docker Network Connect.

02:02:26.780 --> 02:02:27.540
Example.

02:02:27.540 --> 02:02:28.280
Just syntax.

02:02:29.500 --> 02:02:30.780
The syntax says

02:02:30.780 --> 02:02:33.720
you have to use one network

02:02:33.720 --> 02:02:35.800
other side container. I cannot mention

02:02:35.800 --> 02:02:36.960
both network names.

02:02:39.260 --> 02:02:39.700
Getting it?

02:02:40.080 --> 02:02:40.840
Yes.

02:02:41.820 --> 02:02:42.880
Yes. Yes.

02:02:43.300 --> 02:02:44.780
I can mention one container.

02:02:44.900 --> 02:02:47.020
It doesn't have allowed network to network.

02:02:47.020 --> 02:02:47.900
There is no communication.

02:02:49.480 --> 02:02:50.720
So what will happen?

02:02:50.880 --> 02:02:52.360
This container will get typed in this

02:02:52.360 --> 02:02:53.960
and then we can connect it.

02:02:54.300 --> 02:02:55.960
Now I want to play around.

02:02:56.120 --> 02:02:58.820
Take some time. Do a lab 7 first

02:02:59.620 --> 02:03:00.020
yourself.

02:03:00.420 --> 02:03:02.100
Do a lab 7 in which

02:03:02.100 --> 02:03:03.500
you create a network.

02:03:04.620 --> 02:03:06.400
Play around with lab 7 first.

02:03:07.420 --> 02:03:08.440
And then we will do a lab.

02:03:08.480 --> 02:03:10.340
Or if you go to lab 7 you can go to lab 8.

02:03:10.480 --> 02:03:11.360
Are you good with basics?

02:03:12.260 --> 02:03:13.120
Do you understand what I did there?

02:03:13.120 --> 02:03:13.540
No?

02:03:15.200 --> 02:03:17.380
Are you ok with that? Do a lab 8 everyone?

02:03:20.840 --> 02:03:21.080
Yeah.

02:03:21.180 --> 02:03:23.400
Let's do a lab 8 directly. Let's do lab 8.

02:03:23.660 --> 02:03:24.740
Ok. So go ahead

02:03:25.940 --> 02:03:27.280
and create a network.

02:03:27.440 --> 02:03:29.180
Bridge. Bridge 1. It will pick up some

02:03:29.180 --> 02:03:29.580
range.

02:03:31.220 --> 02:03:33.280
And inside this you create two containers.

02:03:33.460 --> 02:03:34.660
Using run hyphen IT.

02:03:36.440 --> 02:03:37.200
And try to ping

02:03:37.200 --> 02:03:38.520
each other. Ok?

02:03:38.960 --> 02:03:41.180
I want you to do this lab. Let's do this.

02:03:41.740 --> 02:03:42.780
Do this.

02:03:43.260 --> 02:03:44.780
Let me know if you have any questions.

02:03:45.360 --> 02:03:46.300
Lab 8 yourself.

02:03:46.840 --> 02:03:49.080
The two networks bridge 1 and bridge 2.

02:03:49.360 --> 02:03:51.000
And allowing containers from one network

02:03:51.000 --> 02:03:53.380
to communicate to other containers in the other bridge network.

02:03:55.080 --> 02:03:55.960
Please do.

02:03:56.640 --> 02:03:57.100
Lab 8.