1
00:00:04,030 --> 00:00:09,670
Alright, have just explained you how you're able to launch additional processes in the running container

2
00:00:09,670 --> 00:00:17,740
and we have launched additional batch process and process and here with Dash Command we were able to

3
00:00:17,740 --> 00:00:21,100
see that all those processes are currently running.

4
00:00:21,190 --> 00:00:21,730
Great.

5
00:00:21,730 --> 00:00:29,410
Let's now go back to this step and exit from process and Clear terminal and let me enter Command Docker

6
00:00:29,410 --> 00:00:32,409
inspect five seven.

7
00:00:32,860 --> 00:00:38,800
This will give us the details about running container that has ID that starts with five seven.

8
00:00:38,800 --> 00:00:40,840
That is actually our mongo container.

9
00:00:40,840 --> 00:00:44,710
And let's scroll up to the very beginning of this long output.

10
00:00:44,710 --> 00:00:47,500
For now, I will not explain you all those details.

11
00:00:47,500 --> 00:00:50,380
I need only small piece of information here.

12
00:00:50,380 --> 00:00:52,960
So here is beginning somewhere.

13
00:00:52,960 --> 00:00:54,010
Yeah, here it is.

14
00:00:54,010 --> 00:01:02,020
And you'll see that here is path specified in this third line and it is set to Docker Entrypoint, dot

15
00:01:02,350 --> 00:01:10,360
H and also afterwards you see array of arguments args and it has single element inside MongoDB.

16
00:01:11,210 --> 00:01:19,660
And actually it says that this container was started using this specific script, Docker Entrypoint

17
00:01:20,810 --> 00:01:29,300
and there was argument mongod that was passed to this script that actually differs from the command

18
00:01:29,300 --> 00:01:35,660
that was used in previous containers, for example, Alpine or Ubuntu container, but it looks like

19
00:01:35,660 --> 00:01:37,550
this in mongo container.

20
00:01:37,730 --> 00:01:45,380
Let's dig a little bit further and let me show you location of this docker entrypoint file inside of

21
00:01:45,380 --> 00:01:46,340
the container.

22
00:01:46,370 --> 00:01:56,810
Let's go back to bash shell here and let's list files in following folder ls usr local bin like so.

23
00:01:56,930 --> 00:02:01,040
And here you'll see docker entrypoint dot file.

24
00:02:01,070 --> 00:02:04,120
Let's have a look at contents of this file card.

25
00:02:04,160 --> 00:02:13,390
You'll user local bin docker entrypoint dot h You are able to use step if you want to autocomplete file

26
00:02:13,390 --> 00:02:13,870
name.

27
00:02:13,870 --> 00:02:21,910
Let's press enter and you'll see large file that is actually executed after creation of new mongo container.

28
00:02:21,910 --> 00:02:24,550
Let me scroll to the beginning of this file.

29
00:02:24,550 --> 00:02:25,660
It is really large.

30
00:02:25,660 --> 00:02:31,450
Again, I will not explain what happens here in greater details, but I want to show you that actually

31
00:02:31,450 --> 00:02:32,980
there is default argument.

32
00:02:33,010 --> 00:02:34,180
Let me scroll.

33
00:02:34,180 --> 00:02:34,540
Yeah.

34
00:02:34,540 --> 00:02:39,520
Here there is default argument mongo d that is set automatically.

35
00:02:39,520 --> 00:02:46,540
If there are no additional custom arguments specified when you start new container again under the hood.

36
00:02:46,540 --> 00:02:50,710
When you create mongo container, this script is executed.

37
00:02:50,710 --> 00:02:56,200
It is actually executable bash executable file and there is default argument.

38
00:02:56,200 --> 00:03:04,480
Mongod that is set automatically and under the hood actually this container starts new mongod process.

39
00:03:04,870 --> 00:03:11,360
That's why we were actually connected to this mongodb process when we have simply entered command Docker

40
00:03:11,360 --> 00:03:11,840
run.

41
00:03:11,840 --> 00:03:13,520
Mongo Great.

42
00:03:13,520 --> 00:03:16,790
That's how this file looks like in Bash Shell.

43
00:03:16,790 --> 00:03:23,540
Next, let me also demonstrate you what additional executables were installed along with MongoDB.

44
00:03:23,810 --> 00:03:29,990
For that let me clear terminal I'm still in bash Shell here inside of the container and let me list

45
00:03:29,990 --> 00:03:33,890
files in following folder LS user slash bin.

46
00:03:34,690 --> 00:03:42,790
And let me scroll up a bit and you'll see such executable files as mongo, mongo, mongo, dump mongo,

47
00:03:42,790 --> 00:03:50,680
export mongo files and so on and that are actually pieces of mongo installation and by default again

48
00:03:50,680 --> 00:03:59,020
we start only mongo mongo database process and in order to connect to mongo shell we could use mongo

49
00:03:59,020 --> 00:03:59,540
command.

50
00:03:59,560 --> 00:04:05,290
It will connect actually to mongo database process and let's try that in the next lecture.

51
00:04:05,290 --> 00:04:06,100
I'll see you then.

52
00:04:06,100 --> 00:04:06,580
Bye bye.

