Alright, have just explained you how you're able to launch additional processes in the running container
and we have launched additional batch process and process and here with Dash Command we were able to
see that all those processes are currently running.
Great.
Let's now go back to this step and exit from process and Clear terminal and let me enter Command Docker
inspect five seven.
This will give us the details about running container that has ID that starts with five seven.
That is actually our mongo container.
And let's scroll up to the very beginning of this long output.
For now, I will not explain you all those details.
I need only small piece of information here.
So here is beginning somewhere.
Yeah, here it is.
And you'll see that here is path specified in this third line and it is set to Docker Entrypoint, dot
H and also afterwards you see array of arguments args and it has single element inside MongoDB.
And actually it says that this container was started using this specific script, Docker Entrypoint
and there was argument mongod that was passed to this script that actually differs from the command
that was used in previous containers, for example, Alpine or Ubuntu container, but it looks like
this in mongo container.
Let's dig a little bit further and let me show you location of this docker entrypoint file inside of
the container.
Let's go back to bash shell here and let's list files in following folder ls usr local bin like so.
And here you'll see docker entrypoint dot file.
Let's have a look at contents of this file card.
You'll user local bin docker entrypoint dot h You are able to use step if you want to autocomplete file
name.
Let's press enter and you'll see large file that is actually executed after creation of new mongo container.
Let me scroll to the beginning of this file.
It is really large.
Again, I will not explain what happens here in greater details, but I want to show you that actually
there is default argument.
Let me scroll.
Yeah.
Here there is default argument mongo d that is set automatically.
If there are no additional custom arguments specified when you start new container again under the hood.
When you create mongo container, this script is executed.
It is actually executable bash executable file and there is default argument.
Mongod that is set automatically and under the hood actually this container starts new mongod process.
That's why we were actually connected to this mongodb process when we have simply entered command Docker
run.
Mongo Great.
That's how this file looks like in Bash Shell.
Next, let me also demonstrate you what additional executables were installed along with MongoDB.
For that let me clear terminal I'm still in bash Shell here inside of the container and let me list
files in following folder LS user slash bin.
And let me scroll up a bit and you'll see such executable files as mongo, mongo, mongo, dump mongo,
export mongo files and so on and that are actually pieces of mongo installation and by default again
we start only mongo mongo database process and in order to connect to mongo shell we could use mongo
command.
It will connect actually to mongo database process and let's try that in the next lecture.
I'll see you then.
Bye bye.