1
00:00:04,350 --> 00:00:06,870
Now, you know that every image is a read only.

2
00:00:07,140 --> 00:00:09,510
And it has multiple afast layers.

3
00:00:10,320 --> 00:00:14,640
Now it's a good time to create new container based on older default image.

4
00:00:15,090 --> 00:00:16,360
And let's create the throws.

5
00:00:16,550 --> 00:00:18,000
Hello, rolled container.

6
00:00:18,390 --> 00:00:22,860
For that, let's use Doka run command that will create a new container.

7
00:00:23,160 --> 00:00:25,980
And afterwards as argument we supply.

8
00:00:26,070 --> 00:00:28,290
Name of the image we want to use.

9
00:00:28,560 --> 00:00:30,470
Hello desk world Raqib.

10
00:00:30,590 --> 00:00:33,870
That this image is already located in our local cache.

11
00:00:34,050 --> 00:00:36,090
We have other deployed from Docker Hub.

12
00:00:36,480 --> 00:00:36,750
Great.

13
00:00:36,780 --> 00:00:37,740
Let's press enter.

14
00:00:39,080 --> 00:00:42,620
And you simply see some text in this output.

15
00:00:43,070 --> 00:00:45,440
And afterwards we go back to time and all.

16
00:00:46,910 --> 00:00:50,600
And that means that container is no longer running.

17
00:00:50,930 --> 00:00:53,420
It has performed some job and that's it.

18
00:00:54,380 --> 00:00:55,910
And now there are two questions.

19
00:00:56,240 --> 00:01:02,900
First one, why this container has printed this thanks to the terminal, how it knows which action to

20
00:01:02,900 --> 00:01:03,380
perform.

21
00:01:03,620 --> 00:01:05,300
When we create new container.

22
00:01:06,170 --> 00:01:09,890
And second question, why this container has exited.

23
00:01:10,160 --> 00:01:11,690
Why it is no longer running.

24
00:01:12,200 --> 00:01:15,740
Actually, I could verify that it does not run anymore using Docker P.

25
00:01:15,750 --> 00:01:19,270
P.S. comment and least of active containers is empty.

26
00:01:20,330 --> 00:01:24,200
Before answering those questions, let me read together with you.

27
00:01:24,470 --> 00:01:25,360
This output.

28
00:01:25,730 --> 00:01:26,610
Hello from Docker.

29
00:01:26,660 --> 00:01:32,150
This message shows that your installation appears to be working correctly to generate this message.

30
00:01:32,240 --> 00:01:34,160
Docker took following steps.

31
00:01:34,710 --> 00:01:39,830
Third step Docker client contacted the dock, a demon Raqib.

32
00:01:39,830 --> 00:01:42,950
That Docker command is actually Dogra client.

33
00:01:43,280 --> 00:01:45,980
It is a binary file located at your computer.

34
00:01:46,520 --> 00:01:54,110
And when you enter Docker, along with any additional commands, Doka client contact Doka Deman and

35
00:01:54,170 --> 00:01:55,670
sends this command to it.

36
00:01:56,300 --> 00:01:57,550
That's what happened under the hood.

37
00:01:58,560 --> 00:02:01,260
Next step, Dr. Deman pulled.

38
00:02:01,420 --> 00:02:03,420
Hello, road image from Docker Hub.

39
00:02:04,230 --> 00:02:07,830
Basically, we have already pulled this image this way.

40
00:02:07,890 --> 00:02:14,370
This step was Dep't Dogor has verified that there was already a hello world image located in local cache.

41
00:02:14,640 --> 00:02:17,010
That's why there was no need to build from Docker Hub.

42
00:02:17,910 --> 00:02:24,900
Next step, Doka demon created a new container from dead image, which rantz executable that produces

43
00:02:24,990 --> 00:02:25,470
output.

44
00:02:25,530 --> 00:02:26,640
You are currently reading.

45
00:02:27,760 --> 00:02:33,700
That means that Dogra has created new container based on Kyllo world image.

46
00:02:35,330 --> 00:02:36,610
But what is actually container?

47
00:02:37,720 --> 00:02:39,550
I'll answer this question in the next larochelle.

48
00:02:39,850 --> 00:02:41,500
But let me finish reading this output.

49
00:02:42,370 --> 00:02:47,890
Finally, Dr. Demon Streambed, that output to the doctor client which sent it to your terminal.

50
00:02:49,190 --> 00:02:56,450
It means that communication between doctor client and Dr. Deman is bidirectional Dogra client sends

51
00:02:56,510 --> 00:03:00,800
some commands to Dr. Deman and Dr. Deman riddles some result.

52
00:03:01,310 --> 00:03:03,430
And this result was a, it don't actually bite.

53
00:03:03,530 --> 00:03:10,790
Dr. Dema and Doc, our client, has printed this text to the terminal and afterwords last step that

54
00:03:10,790 --> 00:03:15,080
was on me that here this docker container was stopped.

55
00:03:16,100 --> 00:03:17,990
Because it has already done its job.

56
00:03:19,160 --> 00:03:22,760
Now let me proceed and next, let me clarify a bit deeper.

57
00:03:22,940 --> 00:03:30,140
What actually happened under the hood and what this container and white container decides to print ciphertext

58
00:03:30,220 --> 00:03:30,890
to the terminal?

59
00:03:31,640 --> 00:03:33,190
Let me talk about it in the next lecture.

60
00:03:33,350 --> 00:03:33,730
Bye bye.

