All right.
Let's go on and let's cross quickly summarize what we did in previous lectures we have used the Mongo
image and we agreed that the different containers monger container was based on that image and we have
seen that every container will actually have its own database.
And when you create the new databases collections or records inside of that container it will belong
only to that container.
And as soon as this container goes away it is stopped or removed.
Then this database is removed as well but very often especially during the development process you need
to have a system database on your computer and have access to it from different containers that you
start and we'll export that.
It is possible to achieve this using volume mapping and in such case different containers that we are
on in Mongo we're able to work with the same database.
Let's not cross it and the next day let's try to create the world press container.
Wordpress is a very popular CMA as a content management system and it is used very often.
There are a lot of custom templates that you're able to use and you're able to create the Web site pretty
fast and quickly using Wordpress.
What browser users BHP and Maya scale.
And that means that WordPress requires working connection to my escrow database.
All right let's now create a container using Wordpress image and let's immediately use Docker on command
with Wordpress image as argument.
Let's also Docker run WordPress unable to find in which WordPress latest locally as usually pulling
a fast layer from Docker Hub.
Let's wait a bit and I'll get back to you when this process will be finished all the way in which was
successfully pulled and afterwards WordPress tried to start you'll see some logs for example this one
WordPress not found in virus three Ws Jamal coping now.
But finally we see in my case actually I see this error code to see winch shutting down gracefully and
I am actually back to terminal and it seems that there are no containers currently running.
Yes that is a case.
And basically let me try to relaunch this container.
Probably something went wrong during startup.
Let me clear terminal and a wrong container using dock run command and here will be at work press.
Let's run it again and it seems that now WordPress is run.
Let's open up your tap Docker.
Yes and yes I see that this container is not running here as in which it was used for launch of this
container.
Here is container I.D. Here was a random name for this container.
And also you'll see that this container listens at the port 80 over DCP and that's basically reasonable
because WordPress uses a partial web server and you are able to connect to WordPress over issue to report
Ada you're also able to set up to be a sport if you want to by default port is Ada.
Also you see that command that was executed here use Docker entry point but C H I have explained you
such uproar is in creation of new containers in previous section where we have talked about monitor
containers again in such case instead of just single command single script is executed dogger entry
point let's see a script great.
No we are not able to connect to this container over port 80 because we cannot create it the port maybe
we used simply command Docker run WordPress.
Actually I see that this container was again stopped after some time and if I will check it here I will
see nothing here.
Let me actually try to run this container probably with option d d in background and with port mapping.
So let's use dock Iran this deal in background and here will be port mapping and let's use external
port a data and internal port will be aid that you see actually here in this output.
So let's try to start towards press like so enter Docker a container idea.
Here it is.
Let's have a look at the containers now.
Dr. Pierce and it seems that the no container is running Wonderful.
Now let's go to the web browser and try to open session to port 88.
Again you are able to use any local IP address of your computer.
I is our local host or 127 0 0 1 or any other IP address assigned to any of your interfaces.
So let's go to Google Chrome and type here local host go on 88.
And we see WordPress set up integration and the less Jules English here.
What makes to make it a bit smaller like this and click here continue.
We're actually able now to perform initial integration of WordPress and that we will need to specify
database name database user name database password and database cost.
Let's click.
Let's go and see what will happen.
And here we are prompted to set up database connection including database host.
Notice that here by default the set to local host.
Let's try to submit and see what will happen.
Error or establishing a database connection.
And that means that there was no database at the moment and we are not able to perform initial integration
of WordPress Maya scale database is absent by default.
Out of the box in this WordPress container it has Apache web server but it doesn't have Maya scale database
and you need to create that Maya scale database somewhere else.
And of course you are able to create additional container and connect to containers what press container
and Maya's fuel container.
And let's try to lounge Maya school a container next.
I'll see you after the smallpox.
Bye bye.