1 00:00:00,000 --> 00:00:04,300 [Intro Music] 2 00:00:04,380 --> 00:00:06,480 Alright, we have just successfully 3 00:00:06,480 --> 00:00:08,760 pulled and used custom image 4 00:00:08,790 --> 00:00:11,520 that has 'curl' utility already 5 00:00:11,520 --> 00:00:14,839 installed inside of it. And now challenge time. 6 00:00:14,839 --> 00:00:18,300 [Background Music] 7 00:00:18,300 --> 00:00:20,900 You need to create two containers in the custom 8 00:00:20,970 --> 00:00:22,860 network. Details are following - 9 00:00:23,400 --> 00:00:25,140 First, please create a custom 10 00:00:25,140 --> 00:00:27,600 network called 'elasticsearch', it 11 00:00:27,600 --> 00:00:30,600 will be new bridge network. Next, 12 00:00:30,870 --> 00:00:33,330 please pull 'elasticsearch' image, 13 00:00:33,960 --> 00:00:36,930 use 'latest' tag if you want. Next, 14 00:00:37,320 --> 00:00:39,540 you need to create two containers 15 00:00:39,630 --> 00:00:42,390 'elasticsearch' container and 'curl' 16 00:00:42,390 --> 00:00:44,640 container based on this image that 17 00:00:44,640 --> 00:00:46,770 we have just used, image is called 18 00:00:46,770 --> 00:00:51,150 'appropriate/curl'. And 19 00:00:51,180 --> 00:00:53,550 you need to use custom names for 20 00:00:53,580 --> 00:00:55,950 both images in order to allow 21 00:00:55,950 --> 00:00:58,020 communication between them by 22 00:00:58,050 --> 00:01:01,500 names. Also, for 'elasticsearch' 23 00:01:01,530 --> 00:01:04,620 image, you need to use port mapping; 24 00:01:04,769 --> 00:01:09,090 and you need to expose port 9200 25 00:01:09,210 --> 00:01:12,480 to external world. And afterwards, 26 00:01:12,510 --> 00:01:14,550 after launch of those two 27 00:01:14,550 --> 00:01:17,370 containers, please verify whether 28 00:01:17,370 --> 00:01:19,320 you are able to connect to external 29 00:01:19,320 --> 00:01:22,830 port 9200 in your web browser or 30 00:01:22,830 --> 00:01:26,370 not. Also, please start the second 31 00:01:26,370 --> 00:01:29,190 container with sh command that will 32 00:01:29,190 --> 00:01:31,380 override the default 'curl' command. 33 00:01:32,070 --> 00:01:34,650 And afterwards, please stop and 34 00:01:34,680 --> 00:01:36,570 watch the next video where I have 35 00:01:36,570 --> 00:01:38,070 actually do the same. But 36 00:01:38,100 --> 00:01:40,890 afterwards, we will try to create a 37 00:01:40,920 --> 00:01:43,050 new index in 'Elasticsearch' 38 00:01:43,050 --> 00:01:45,090 database, insert some documents 39 00:01:45,090 --> 00:01:47,250 there, and perform searches in that 40 00:01:47,250 --> 00:01:49,290 database. And we will do that from 41 00:01:49,290 --> 00:01:52,260 the second container. And also we 42 00:01:52,260 --> 00:01:54,780 will use name 'elasticsearch' to 43 00:01:54,780 --> 00:01:56,970 connect to 'elasticsearch' container. 44 00:01:57,030 --> 00:01:59,250 So, here's another important notice. 45 00:01:59,460 --> 00:02:02,130 Please use name 'elasticsearch' for 46 00:02:02,190 --> 00:02:04,410 'elasticsearch' container. So I wish 47 00:02:04,410 --> 00:02:06,180 you good luck, and next I will show 48 00:02:06,180 --> 00:02:08,038 you how to do it myself. Bye-Bye. 49 00:02:08,038 --> 00:02:12,458 [no audio]