[Intro Music]
Before moving on, let me make an
important conclusion of examples
that we have looked at in previous
lectures. And the most important
conclusion is that Docker is
capable of creation and
modification of the files
located on your local computer, and
we have seen that in the last
challenge. You have seen that
before launch of the container,
there was just a single file 'index.js'
here in the 'files' folder. Let me
clear terminal and list files
here. And again, before launch of
the container, there was just
single file index.js, this one, that
we have created manually in Visual
Studio Code. But during execution
of the Node.js process inside of
the container, Docker has created
additional files like 'myfile1.txt',
or 'myfile2.txt'
inside of 'files' folder on our local
computer, it is very important.
Again, Docker containers are
capable of modification and
creation of the new files on your
local computer. And this important
conclusion we will use in the next
examples where we will try to
create persistent database and work
with the same database from
multiple containers for example,
MongoDB containers or Redis
containers or MySQL containers.
Alright, before going on with the
next example where we will use
'mongo' image, let me quickly clear
our containers that we have created
before. Let me list them, 'docker ps
-a'. And again, we could use
command 'docker container prune' in
order to remove all stopped
containers. Type Yes here, and all
stopped containers were removed.
And if I'll have a look at
containers now, 'docker ps - a'
there are no containers,
either stopped or running.
Wonderful. Now we are ready to go
on, and the next let's download
'mongo' image and launch 'mongo'
container. I will see you next. Bye-Bye.
[no audio]