1
00:00:04,280 --> 00:00:04,890
All right.

2
00:00:05,070 --> 00:00:10,890
I have just rearranged those two windows and stacked on top of each other in order to be able to leave

3
00:00:10,920 --> 00:00:12,630
my face here in this corner.

4
00:00:12,660 --> 00:00:13,410
So let's proceed.

5
00:00:13,440 --> 00:00:19,680
And in this lecture let's read the two different containers based on engine Nix image.

6
00:00:19,680 --> 00:00:23,530
And for that we will Sara files from different folders.

7
00:00:23,550 --> 00:00:25,190
Let's get right into it.

8
00:00:25,200 --> 00:00:31,740
Let's go to visual studio called and look that there was the folder on desktop and inside of it.

9
00:00:31,740 --> 00:00:33,290
There was engine X folder.

10
00:00:33,510 --> 00:00:39,840
And we have used this folder in order to set off some static files like index that this general and

11
00:00:39,840 --> 00:00:43,800
their faith icons to clients that used engine X web Sara.

12
00:00:43,950 --> 00:00:49,400
And now it's a good time to take this folder and make two copies of this folder.

13
00:00:49,500 --> 00:00:53,030
And they called them engine X1 and engine x2.

14
00:00:53,070 --> 00:00:59,670
And afterwards we will spin up to a different container as the running engine etc. and we will expose

15
00:00:59,670 --> 00:01:02,930
them to do different external boards on this computer.

16
00:01:03,270 --> 00:01:03,970
Let's do so.

17
00:01:04,200 --> 00:01:10,100
If you don't have this engine X folder you could take it from GitHub repository just clone it to find

18
00:01:10,110 --> 00:01:13,730
containers for that there and then find in Gen X folder.

19
00:01:13,890 --> 00:01:14,640
Great.

20
00:01:14,640 --> 00:01:16,790
Let me copied this folder.

21
00:01:16,800 --> 00:01:17,880
All right Miles click.

22
00:01:17,880 --> 00:01:21,480
Copy and paste here like so.

23
00:01:21,490 --> 00:01:22,790
And let me or name it.

24
00:01:22,800 --> 00:01:33,400
Press enter and it will be engine X one like so and let's make one more quote Bill based and let's name

25
00:01:33,400 --> 00:01:33,610
it.

26
00:01:33,650 --> 00:01:35,240
Engine x.

27
00:01:35,410 --> 00:01:43,180
Like so next door let's open up engine x 1 for the end open in this similar file down please for us

28
00:01:43,190 --> 00:01:47,600
to close this index said the decimal file that was opened in and Gen X folder.

29
00:01:47,720 --> 00:01:53,830
Okay so engine X1 and in the this gem L and TALF adjusted this text.

30
00:01:53,830 --> 00:02:00,100
Hello from the first and Gen X cetera.

31
00:02:00,130 --> 00:02:08,080
Like so let's save this file next to collapse and Gen X 1 folder expand in Gen X 2 folder and open in

32
00:02:08,380 --> 00:02:09,630
this GMO file there.

33
00:02:09,970 --> 00:02:11,980
And let's just text here.

34
00:02:12,010 --> 00:02:21,440
Hello from the 2nd and Jane etc. And also we could adjust the titles here and instead of a document

35
00:02:21,470 --> 00:02:29,950
here we'll be in let's say NGO x 2 and let's save this file gold 2 engine x 1 folder and index location

36
00:02:29,950 --> 00:02:37,220
all file instead of that folder and adjust document here and here we'll be engine X one let's say save

37
00:02:37,220 --> 00:02:43,070
the file and now we are all set and now we're able to start two different containers in two different

38
00:02:43,070 --> 00:02:43,940
folders.

39
00:02:44,090 --> 00:02:44,540
Great.

40
00:02:44,540 --> 00:02:51,580
Let me close the doors to index AGM all files and gold all time and all record that we have started

41
00:02:51,580 --> 00:02:59,150
the stand alone and Jennings container using the B WD variable and now we will do the same but if you

42
00:02:59,150 --> 00:03:05,060
want to use variable instead of absolute Beth you need to first Cydia to a corresponding folder that

43
00:03:05,060 --> 00:03:12,080
has needed files and only then run Docker on command inside of that folder let's do so here we'll be

44
00:03:12,080 --> 00:03:19,670
in Jane except one server and here we'll be in Gen X 2 Sara let's see did 2 desktop containers in Jane

45
00:03:19,670 --> 00:03:28,630
X one like so and here let's see two desktop containers in Gen X two great let's not start the engine

46
00:03:28,630 --> 00:03:35,840
X one contender and for that we will use as usually dock our on command next let's expose support DSP

47
00:03:36,200 --> 00:03:46,550
and let's run engine x 1 etc. on board let's say 5 5 5 5 and internal port will be 8 and next that comes

48
00:03:46,610 --> 00:03:51,990
well you might be in the stream here we'll be a variable BMW Dean.

49
00:03:52,040 --> 00:03:58,900
Next comes Colin and after Colin you need to specify path to files inside of that container and the

50
00:03:58,900 --> 00:04:05,490
this path is yours user Sharon and Jane Nicks HMO like so.

51
00:04:05,660 --> 00:04:08,150
And finally comes the name of.

52
00:04:08,300 --> 00:04:15,350
And Jane Nicks image and Jane Nicks also optionally youcan specify name of the container recap that

53
00:04:15,410 --> 00:04:20,870
if you don't because if I name of the container and then Docker will generate a random name and you

54
00:04:20,870 --> 00:04:26,150
have seen that such random names before but you are able to add custom name if you want to and for that

55
00:04:26,210 --> 00:04:33,980
you could use option does that name and here let's name this container N.J. and this one like so great

56
00:04:34,370 --> 00:04:37,430
let's press enter and see what will happen.

57
00:04:37,640 --> 00:04:43,700
Container was running we're actually inside of it and we are ready to see some looks great let's now

58
00:04:43,700 --> 00:04:52,760
do the same here for engine next 2 etc. Docker run this beep let's expose it to port 6 6 6 6 like so

59
00:04:52,790 --> 00:04:58,370
and internal port we'll be again aided because the support that is opened by engine X cetera inside

60
00:04:58,370 --> 00:05:06,080
of the container by default next comes the volume might be the same variable BW deem it is important.

61
00:05:06,110 --> 00:05:12,940
Same variable and it will be replaced by absolute path for each of those folders in Gen X to end in

62
00:05:12,940 --> 00:05:20,210
Gen X 1 in our cases and here let's after Colin specify the same internal folder use our Cheryl and

63
00:05:20,210 --> 00:05:29,000
Jane Nicks age demo and let's give name to this container and Gen X 2 and Gen X Okay let's press enter

64
00:05:29,030 --> 00:05:32,150
and start this second and Gen X etcetera.

65
00:05:32,270 --> 00:05:37,550
Now we are all set and those two containers are no running and in order to verify that you will simply

66
00:05:37,580 --> 00:05:45,170
open up a Google Chrome and try to connect the doors to both 5 5 5 5 and 6 6 6 6 let us know so let's

67
00:05:45,170 --> 00:05:51,710
go to Google Chrome and here we could use a local host Buttercup that you're also able to use all back

68
00:05:51,740 --> 00:05:57,170
IP address 127 to 0 0 1 or any of the IP addresses of your computer.

69
00:05:57,560 --> 00:06:05,560
I'll use a local host so local host and here let's connect to frost and Jane etc. hello from dethroned

70
00:06:05,660 --> 00:06:17,590
and Jane etc. Let's open up new tab the local host column 6 6 6 6 say it cannot be reached.

71
00:06:17,670 --> 00:06:18,540
Something is wrong.

72
00:06:18,540 --> 00:06:23,560
Let's go to Diamond now and verify what's actually happening here.

73
00:06:23,640 --> 00:06:30,530
Users share sharing Nix no looks here and the commander to walking properly.

74
00:06:30,970 --> 00:06:32,110
Let's go back to Chrome.

75
00:06:32,750 --> 00:06:33,110
Yeah.

76
00:06:33,220 --> 00:06:36,770
Actually I see here error error or unsafe port.

77
00:06:36,820 --> 00:06:42,140
It seems that I'm not able to expose the sites 4 to 6 6 6 6.

78
00:06:42,160 --> 00:06:45,780
Okay let's rerun this container and the use and USB port.

79
00:06:45,790 --> 00:06:56,440
Let's close this and let's run it at the port let's say 7 7 7 7 and I see error from Doctor error response

80
00:06:56,440 --> 00:06:57,560
from Damon conflict.

81
00:06:57,580 --> 00:07:04,030
The container name and Jane x2 is already in use by another container but actually I have just stopped

82
00:07:04,090 --> 00:07:09,660
this container with custom name but it still exists and you are able to start it over again.

83
00:07:09,760 --> 00:07:14,030
You could verify that by entering Docker appears and you should see only one container running.

84
00:07:14,050 --> 00:07:15,270
And yes that is a case.

85
00:07:15,280 --> 00:07:17,960
Here we send this container that is running here in this window.

86
00:07:18,160 --> 00:07:24,670
But if you'll die a doctor be a sub that's a you'll see that this container should be somewhere at the

87
00:07:24,670 --> 00:07:31,300
top was exhausted but it is still available for use and you are able to restart it if you want to here

88
00:07:31,300 --> 00:07:34,340
with actually this container was named in Jan 2.

89
00:07:34,360 --> 00:07:39,460
That's why we need to remove this contained our heroes before starting container was the same name and

90
00:07:39,490 --> 00:07:46,450
I could remove container by type in Docker R M and here we'll be eyes our I.D. of the container or its

91
00:07:46,450 --> 00:07:54,280
name we could use your name and Jane X to like so container was removed and now I am able to try to

92
00:07:54,280 --> 00:07:56,690
start a container with the same name again.

93
00:07:56,830 --> 00:07:58,200
Let's clear terminal here.

94
00:07:58,510 --> 00:08:06,190
And again goes back to history and I find this comment and let's try to start this container and expose

95
00:08:06,190 --> 00:08:08,440
port 7 7 7 7.

96
00:08:08,660 --> 00:08:09,900
Enter.

97
00:08:10,100 --> 00:08:18,470
Let's go to Rome and here instead of this port let's use this port and to and I see a response hello

98
00:08:18,470 --> 00:08:20,350
from the second engine etc..

99
00:08:20,460 --> 00:08:22,100
Basically I have no idea why.

100
00:08:22,170 --> 00:08:25,460
Port 6 6 6 6 is considered unsafe.

101
00:08:25,460 --> 00:08:27,580
Actually let me google it quickly.

102
00:08:27,730 --> 00:08:29,130
6 6 6 6.

103
00:08:29,260 --> 00:08:36,070
UN safe port and let's check out this first link which ports are considered unsafe.

104
00:08:36,070 --> 00:08:44,039
Vikram Let's scroll down a bit and here is a list of all ports that are considered as are restricted.

105
00:08:44,049 --> 00:08:50,530
Actually you see here a list of default ports for different applications like ports 22 for SSA age and

106
00:08:50,530 --> 00:08:51,270
so on.

107
00:08:51,280 --> 00:08:59,070
And let me scroll down and yes here is a list of ports in this range and this port all six is an alternate

108
00:08:59,080 --> 00:09:01,450
to IRS sea application port.

109
00:09:01,510 --> 00:09:04,510
Actually I don't know what is I.R.S..

110
00:09:04,600 --> 00:09:05,380
Let me check.

111
00:09:05,410 --> 00:09:06,010
What does that.

112
00:09:06,030 --> 00:09:14,160
Quigley see is Internet Relay Chat is a system that facilitates transfer of messages in the form of

113
00:09:14,160 --> 00:09:14,740
text.

114
00:09:14,770 --> 00:09:15,220
Okay.

115
00:09:15,310 --> 00:09:17,760
To some sort of chat and application.

116
00:09:17,820 --> 00:09:18,350
Great.

117
00:09:18,390 --> 00:09:25,080
That's how we found out that we are not able to expose the same support and use it for our gen Gen-X

118
00:09:25,200 --> 00:09:27,150
cetera or any of or container basically.

119
00:09:27,510 --> 00:09:28,230
Great.

120
00:09:28,230 --> 00:09:29,050
We have a dude.

121
00:09:29,050 --> 00:09:34,320
Actually our goal and we are able to summarize what we have achieved in this location and we have agreed

122
00:09:34,320 --> 00:09:37,800
that the two different engine accelerators here was there.

123
00:09:37,820 --> 00:09:44,130
Sarah and we have set up content from the engine X one folder and here was the second engine.

124
00:09:44,130 --> 00:09:48,420
Sarah and Sarah was content from the engine to fall drunk.

125
00:09:48,450 --> 00:09:50,510
And here we have actually verified that.

126
00:09:50,580 --> 00:09:52,790
Here you see Hello from the second engine etc..

127
00:09:52,800 --> 00:09:55,450
And here is the document title engine x2.

128
00:09:55,530 --> 00:10:01,950
And he and this Deb used to document title engine X1 and hello from the first engine etc. And of course

129
00:10:02,160 --> 00:10:08,340
any time when you'll edit the files and those to follow the rules and refresh page afterwards and Google

130
00:10:08,340 --> 00:10:10,410
Chrome you'll see updated page.

131
00:10:10,410 --> 00:10:17,910
For example if I change in the HMO file here in engine X to folder and add one more exclamation mark

132
00:10:17,910 --> 00:10:24,630
here go to Google Chrome back go to engine x2 refresh page you'll see updated the text here.

133
00:10:24,900 --> 00:10:30,660
That's how you're able to start the multiple engine accelerators but it is important that you need to

134
00:10:30,660 --> 00:10:38,190
use different external boards and because on your computer each board may be utilized only by one application.

135
00:10:38,490 --> 00:10:44,970
And in this case those two boards this port and the this port will be actually forwarded to dock Horst

136
00:10:45,060 --> 00:10:49,600
and it will actually proxy indoor sports correspondent containers.

137
00:10:49,620 --> 00:10:51,360
That's how it works under the hood.

138
00:10:51,360 --> 00:10:51,920
Great.

139
00:10:51,960 --> 00:10:53,180
That's all for this logo.

140
00:10:53,190 --> 00:10:54,310
I hope that you enjoyed it.

141
00:10:54,330 --> 00:11:00,600
And we have found some interesting stuff and the nice low let's start with Python and let's create simple

142
00:11:00,600 --> 00:11:03,780
python application and run it inside of the container.

143
00:11:03,780 --> 00:11:05,210
I'll see you in the next lecture.

144
00:11:05,280 --> 00:11:05,540
My.

