1
00:00:04,310 --> 00:00:05,050
All right.

2
00:00:05,080 --> 00:00:10,900
Let's go on and let's cross quickly summarize what we did in previous lectures we have used the Mongo

3
00:00:10,990 --> 00:00:17,260
image and we agreed that the different containers monger container was based on that image and we have

4
00:00:17,380 --> 00:00:22,140
seen that every container will actually have its own database.

5
00:00:22,210 --> 00:00:28,000
And when you create the new databases collections or records inside of that container it will belong

6
00:00:28,150 --> 00:00:29,520
only to that container.

7
00:00:29,860 --> 00:00:34,430
And as soon as this container goes away it is stopped or removed.

8
00:00:34,480 --> 00:00:40,540
Then this database is removed as well but very often especially during the development process you need

9
00:00:40,540 --> 00:00:46,420
to have a system database on your computer and have access to it from different containers that you

10
00:00:46,420 --> 00:00:48,720
start and we'll export that.

11
00:00:48,730 --> 00:00:55,480
It is possible to achieve this using volume mapping and in such case different containers that we are

12
00:00:55,470 --> 00:00:59,990
on in Mongo we're able to work with the same database.

13
00:01:00,100 --> 00:01:04,910
Let's not cross it and the next day let's try to create the world press container.

14
00:01:04,930 --> 00:01:10,750
Wordpress is a very popular CMA as a content management system and it is used very often.

15
00:01:10,750 --> 00:01:16,030
There are a lot of custom templates that you're able to use and you're able to create the Web site pretty

16
00:01:16,090 --> 00:01:18,270
fast and quickly using Wordpress.

17
00:01:18,370 --> 00:01:21,650
What browser users BHP and Maya scale.

18
00:01:21,670 --> 00:01:27,480
And that means that WordPress requires working connection to my escrow database.

19
00:01:27,490 --> 00:01:33,850
All right let's now create a container using Wordpress image and let's immediately use Docker on command

20
00:01:34,090 --> 00:01:36,220
with Wordpress image as argument.

21
00:01:36,600 --> 00:01:44,980
Let's also Docker run WordPress unable to find in which WordPress latest locally as usually pulling

22
00:01:45,270 --> 00:01:47,260
a fast layer from Docker Hub.

23
00:01:47,260 --> 00:01:52,990
Let's wait a bit and I'll get back to you when this process will be finished all the way in which was

24
00:01:52,990 --> 00:01:59,080
successfully pulled and afterwards WordPress tried to start you'll see some logs for example this one

25
00:01:59,110 --> 00:02:02,850
WordPress not found in virus three Ws Jamal coping now.

26
00:02:02,980 --> 00:02:10,669
But finally we see in my case actually I see this error code to see winch shutting down gracefully and

27
00:02:10,770 --> 00:02:15,550
I am actually back to terminal and it seems that there are no containers currently running.

28
00:02:15,640 --> 00:02:16,750
Yes that is a case.

29
00:02:17,140 --> 00:02:20,620
And basically let me try to relaunch this container.

30
00:02:20,650 --> 00:02:23,120
Probably something went wrong during startup.

31
00:02:23,170 --> 00:02:28,140
Let me clear terminal and a wrong container using dock run command and here will be at work press.

32
00:02:29,530 --> 00:02:34,830
Let's run it again and it seems that now WordPress is run.

33
00:02:34,940 --> 00:02:36,910
Let's open up your tap Docker.

34
00:02:36,990 --> 00:02:42,890
Yes and yes I see that this container is not running here as in which it was used for launch of this

35
00:02:42,890 --> 00:02:43,610
container.

36
00:02:43,630 --> 00:02:46,950
Here is container I.D. Here was a random name for this container.

37
00:02:47,060 --> 00:02:53,390
And also you'll see that this container listens at the port 80 over DCP and that's basically reasonable

38
00:02:53,570 --> 00:02:59,930
because WordPress uses a partial web server and you are able to connect to WordPress over issue to report

39
00:03:00,150 --> 00:03:05,140
Ada you're also able to set up to be a sport if you want to by default port is Ada.

40
00:03:05,360 --> 00:03:12,560
Also you see that command that was executed here use Docker entry point but C H I have explained you

41
00:03:12,650 --> 00:03:18,050
such uproar is in creation of new containers in previous section where we have talked about monitor

42
00:03:18,050 --> 00:03:24,770
containers again in such case instead of just single command single script is executed dogger entry

43
00:03:24,770 --> 00:03:27,260
point let's see a script great.

44
00:03:27,260 --> 00:03:32,700
No we are not able to connect to this container over port 80 because we cannot create it the port maybe

45
00:03:33,080 --> 00:03:36,500
we used simply command Docker run WordPress.

46
00:03:36,590 --> 00:03:43,460
Actually I see that this container was again stopped after some time and if I will check it here I will

47
00:03:43,460 --> 00:03:44,760
see nothing here.

48
00:03:45,080 --> 00:03:51,510
Let me actually try to run this container probably with option d d in background and with port mapping.

49
00:03:51,560 --> 00:03:57,950
So let's use dock Iran this deal in background and here will be port mapping and let's use external

50
00:03:57,950 --> 00:04:03,800
port a data and internal port will be aid that you see actually here in this output.

51
00:04:04,160 --> 00:04:10,150
So let's try to start towards press like so enter Docker a container idea.

52
00:04:10,190 --> 00:04:10,930
Here it is.

53
00:04:11,060 --> 00:04:13,040
Let's have a look at the containers now.

54
00:04:13,220 --> 00:04:19,070
Dr. Pierce and it seems that the no container is running Wonderful.

55
00:04:19,100 --> 00:04:23,520
Now let's go to the web browser and try to open session to port 88.

56
00:04:23,570 --> 00:04:27,300
Again you are able to use any local IP address of your computer.

57
00:04:27,350 --> 00:04:35,160
I is our local host or 127 0 0 1 or any other IP address assigned to any of your interfaces.

58
00:04:35,210 --> 00:04:40,790
So let's go to Google Chrome and type here local host go on 88.

59
00:04:42,780 --> 00:04:48,260
And we see WordPress set up integration and the less Jules English here.

60
00:04:48,430 --> 00:04:53,620
What makes to make it a bit smaller like this and click here continue.

61
00:04:53,610 --> 00:05:00,240
We're actually able now to perform initial integration of WordPress and that we will need to specify

62
00:05:00,300 --> 00:05:04,530
database name database user name database password and database cost.

63
00:05:05,250 --> 00:05:05,840
Let's click.

64
00:05:05,880 --> 00:05:07,940
Let's go and see what will happen.

65
00:05:07,950 --> 00:05:13,810
And here we are prompted to set up database connection including database host.

66
00:05:14,250 --> 00:05:18,110
Notice that here by default the set to local host.

67
00:05:18,120 --> 00:05:20,910
Let's try to submit and see what will happen.

68
00:05:21,950 --> 00:05:24,820
Error or establishing a database connection.

69
00:05:25,010 --> 00:05:30,860
And that means that there was no database at the moment and we are not able to perform initial integration

70
00:05:30,950 --> 00:05:35,750
of WordPress Maya scale database is absent by default.

71
00:05:35,780 --> 00:05:42,710
Out of the box in this WordPress container it has Apache web server but it doesn't have Maya scale database

72
00:05:43,280 --> 00:05:47,870
and you need to create that Maya scale database somewhere else.

73
00:05:47,870 --> 00:05:53,450
And of course you are able to create additional container and connect to containers what press container

74
00:05:53,720 --> 00:05:55,500
and Maya's fuel container.

75
00:05:55,700 --> 00:05:59,120
And let's try to lounge Maya school a container next.

76
00:05:59,180 --> 00:06:00,860
I'll see you after the smallpox.

77
00:06:00,890 --> 00:06:01,250
Bye bye.

