1
00:00:04,420 --> 00:00:07,630
Before creation of multiple contain those based in the same image.

2
00:00:07,870 --> 00:00:13,270
Let me briefly explain you what option DST means in the doc around comment.

3
00:00:13,300 --> 00:00:18,380
Basically in one of the previous lecturers in multiple actually we have used this option but the Hamilton

4
00:00:18,430 --> 00:00:20,380
explained what it means.

5
00:00:20,440 --> 00:00:22,030
Let me just type here.

6
00:00:22,080 --> 00:00:30,220
Dr Ron does this help and here you'll see this option on the least you could use either this deal or

7
00:00:30,280 --> 00:00:35,120
there's desk DTI and it allocates sailed or to die.

8
00:00:35,140 --> 00:00:37,990
I'll explain what it does actually in a minute.

9
00:00:37,990 --> 00:00:44,890
Also if you scroll up you'll find option this i or does desk interactive and with this option in place

10
00:00:45,160 --> 00:00:50,720
you will be connected to as to the instant that input or specific process that does are running inside

11
00:00:50,730 --> 00:00:51,400
of the container.

12
00:00:52,160 --> 00:00:56,890
Okay let's first create a container using only desk I option next.

13
00:00:56,890 --> 00:00:59,320
Let's try to use only DST option.

14
00:00:59,320 --> 00:01:03,550
And finally let's combine this I and this the options together.

15
00:01:03,820 --> 00:01:04,050
Okay.

16
00:01:04,060 --> 00:01:05,340
Let's do it.

17
00:01:05,480 --> 00:01:08,650
DR RON Dash I Alpine.

18
00:01:10,030 --> 00:01:17,380
And here I am now attached to C H brought us inside the Alpine container and I am able to list files

19
00:01:17,670 --> 00:01:26,580
I am able to create new folders and gate D I are tasked C D test next let's for example write some text

20
00:01:26,580 --> 00:01:38,220
on the file like Echo law from Alpine and let's write this text to file the extreme west Nile is the

21
00:01:38,220 --> 00:01:45,490
files in the test folder and we see response from the process and the U.S. file name file to the extreme

22
00:01:45,770 --> 00:01:51,630
and no let's read the contents of this file a court file the DST and I should see hello from Alpine.

23
00:01:51,990 --> 00:01:58,980
And yes I see this result but as you see here when we use only this I option we don't see any common

24
00:01:58,980 --> 00:01:59,460
bromide.

25
00:01:59,460 --> 00:02:02,700
We don't see a need for a mountain of the output and so on.

26
00:02:03,330 --> 00:02:10,800
That's why it was option the steam Docker is able to create for you sailed the DTI and it will actually

27
00:02:10,800 --> 00:02:16,290
produce some nice looking common from the format results and so on.

28
00:02:16,290 --> 00:02:17,450
Let's try it.

29
00:02:17,550 --> 00:02:24,660
I could try to terminate this process using a control C but it will not work and you know why is that

30
00:02:24,690 --> 00:02:30,550
because this process stage brought inside of this container does not accept such commands.

31
00:02:31,020 --> 00:02:32,130
That's why you are able.

32
00:02:32,120 --> 00:02:39,240
Eyes are a stop container or kill it or you are able to use exert command inside the DCH terminal that

33
00:02:39,240 --> 00:02:44,710
will exit from DCH brought us and of course container will be terminated after that.

34
00:02:44,790 --> 00:02:51,480
Let's try that exit and yes we where exit that from stage brought us and you file leased container was

35
00:02:51,480 --> 00:02:57,610
now Dr. P.S. I see empty output there are no containers count urine No.

36
00:02:57,630 --> 00:03:05,150
Let's try to create same container based on an image but no using only this the option list also lets

37
00:03:05,160 --> 00:03:16,980
clear terminal Docker run DST Alpine and I actually seek a month prompt but I am not able to enter any

38
00:03:16,980 --> 00:03:20,250
commands and they don't get any results from me.

39
00:03:20,560 --> 00:03:26,140
That's because no I am not actually connected to stand out in old CHF brought us.

40
00:03:26,190 --> 00:03:31,190
That's why it's not enough to use only this option that will emulate Salvador to.

41
00:03:31,260 --> 00:03:37,030
You will be able to enter any commands or get any output from specific brought us.

42
00:03:37,110 --> 00:03:38,640
Let me exit from this.

43
00:03:38,660 --> 00:03:42,020
Actually I'm not sure whether I will be able to do so.

44
00:03:42,030 --> 00:03:43,190
No I am not able to do so.

45
00:03:43,190 --> 00:03:46,700
That's why in this case I need to terminate container manually.

46
00:03:47,040 --> 00:03:55,570
Was gold to separate tap Docker B.S. here and dock are kill and I.D. on the container container was

47
00:03:55,570 --> 00:04:01,480
skilled and they see that this first session this step just around good Gabel is fine.

48
00:04:01,710 --> 00:04:04,840
Let's go here and they see that this process was terminated.

49
00:04:05,350 --> 00:04:12,720
Okay let's not launch a same container was by an image but now using both options dash D and best I

50
00:04:13,180 --> 00:04:13,770
was clear.

51
00:04:13,770 --> 00:04:21,029
Terminal Docker Iran and you are able to use those two options at best I and Desh de separated like

52
00:04:21,029 --> 00:04:25,730
so or you are able to combine them and deride simply dash a deal.

53
00:04:26,250 --> 00:04:32,010
Please remember that now we are using two different options not a single option called Deal.

54
00:04:32,460 --> 00:04:32,960
Great.

55
00:04:33,000 --> 00:04:33,910
Lets know type.

56
00:04:33,920 --> 00:04:34,730
Name of the image.

57
00:04:34,740 --> 00:04:36,420
Alpine Empress Anton.

58
00:04:36,870 --> 00:04:42,540
And now you see command prompt and if it's a for example to be in you'll see that this command prompt

59
00:04:42,570 --> 00:04:44,730
will be adjusted accordingly.

60
00:04:44,850 --> 00:04:50,580
If I leased files here in the folder you will see that they were formatted with different colors and

61
00:04:50,580 --> 00:04:52,870
this tends to sell the deal.

62
00:04:53,160 --> 00:04:53,780
Great.

63
00:04:53,830 --> 00:05:00,780
That's how you able to get access to specific process using cell 2 to try and interactive option that

64
00:05:00,780 --> 00:05:05,640
will actually connect you to standard input and output auth Pacific brought us.

65
00:05:05,640 --> 00:05:10,060
In our case there was a default process c h shell grade.

66
00:05:10,120 --> 00:05:14,700
Let's not try to terminate this process using control C but it will work.

67
00:05:14,700 --> 00:05:16,020
Reason is the same as before.

68
00:05:16,320 --> 00:05:23,250
I have explained you that C H process does not accept the any system commands but you are able to exit

69
00:05:23,250 --> 00:05:25,980
from this process as from any shell.

70
00:05:26,070 --> 00:05:32,360
Using exit command lets type exit this C H brought us inside of the container will be terminated.

71
00:05:32,370 --> 00:05:38,850
There will be no hours or processes running and docker will therefore terminate this container w type

72
00:05:38,880 --> 00:05:46,440
exit enter and we get back to our terminal brand and you file leased container was no longer appears.

73
00:05:46,470 --> 00:05:47,580
You will see nothing.

74
00:05:47,580 --> 00:05:51,120
Container was exited great.

75
00:05:51,160 --> 00:05:54,880
There is a difference between this ie this D and this AI.

76
00:05:54,930 --> 00:05:56,980
This the options.

77
00:05:56,980 --> 00:05:57,640
Let's try it.

78
00:05:57,640 --> 00:06:00,490
To do the same wheels for example one to image.

79
00:06:00,730 --> 00:06:08,320
Let's clear time and null and the type Docker run this idea or want to work up that one is already present

80
00:06:08,350 --> 00:06:16,720
in our local image just cache container was created and we always looked in as a root user and look

81
00:06:16,750 --> 00:06:18,610
up the boom to default.

82
00:06:18,610 --> 00:06:21,340
Command is actually been based.

83
00:06:21,370 --> 00:06:24,380
Let me list contain there's no end here you see this command.

84
00:06:24,400 --> 00:06:25,480
Bin bash.

85
00:06:25,480 --> 00:06:30,400
This is actually shell but it differs from this C H shell this way here in this step.

86
00:06:30,400 --> 00:06:36,790
You see a NAS among bromide and it includes a user name and hostname of this one container.

87
00:06:37,150 --> 00:06:43,200
If I released files I would get a similar result and you file a C D for example to being released files

88
00:06:43,210 --> 00:06:43,660
here.

89
00:06:43,690 --> 00:06:45,190
I get similar output.

90
00:06:45,190 --> 00:06:48,220
Same as a whole scene in C H shell.

91
00:06:48,280 --> 00:06:52,220
Let's also try to terminate this process using control C.

92
00:06:52,240 --> 00:06:56,490
Also same result but you are able again to exit from this process.

93
00:06:56,560 --> 00:07:04,240
In this case bash process using exert command and no process was terminated and the container was deleted

94
00:07:04,330 --> 00:07:05,200
as well.

95
00:07:05,240 --> 00:07:06,620
Let's where you find it Docker.

96
00:07:06,710 --> 00:07:10,250
Yes and no there are no containers currently run.

97
00:07:10,280 --> 00:07:15,970
That's all about the best option that you could use with Docker on command and in most cases it is used

98
00:07:16,030 --> 00:07:23,290
along with IE option and those options could be combined and you could write simply a dash 80 DST option

99
00:07:23,290 --> 00:07:28,760
creates to the eye that allows you to interact with specific process inside of the container.

100
00:07:29,470 --> 00:07:31,750
That's all for this lecture and the next one.

101
00:07:31,750 --> 00:07:36,020
Let me create the multiple container based on the same image.

102
00:07:36,100 --> 00:07:36,890
I'll see you next.

103
00:07:36,910 --> 00:07:37,290
My main.

