1 00:00:00,000 --> 00:00:04,099 [Intro Music] 2 00:00:04,170 --> 00:00:05,700 Before moving on, let me make an 3 00:00:05,730 --> 00:00:08,039 important conclusion of examples 4 00:00:08,039 --> 00:00:10,350 that we have looked at in previous 5 00:00:10,350 --> 00:00:12,780 lectures. And the most important 6 00:00:12,780 --> 00:00:15,210 conclusion is that Docker is 7 00:00:15,210 --> 00:00:16,920 capable of creation and 8 00:00:16,950 --> 00:00:18,810 modification of the files 9 00:00:18,810 --> 00:00:21,450 located on your local computer, and 10 00:00:21,450 --> 00:00:23,100 we have seen that in the last 11 00:00:23,100 --> 00:00:24,870 challenge. You have seen that 12 00:00:24,870 --> 00:00:26,640 before launch of the container, 13 00:00:26,730 --> 00:00:29,242 there was just a single file 'index.js' 14 00:00:29,242 --> 00:00:31,440 here in the 'files' folder. Let me 15 00:00:31,440 --> 00:00:33,210 clear terminal and list files 16 00:00:33,210 --> 00:00:35,670 here. And again, before launch of 17 00:00:35,670 --> 00:00:37,650 the container, there was just 18 00:00:37,650 --> 00:00:40,920 single file index.js, this one, that 19 00:00:40,950 --> 00:00:42,600 we have created manually in Visual 20 00:00:42,600 --> 00:00:45,510 Studio Code. But during execution 21 00:00:45,540 --> 00:00:47,430 of the Node.js process inside of 22 00:00:47,430 --> 00:00:49,860 the container, Docker has created 23 00:00:49,890 --> 00:00:53,121 additional files like 'myfile1.txt', 24 00:00:53,121 --> 00:00:54,930 or 'myfile2.txt' 25 00:00:55,080 --> 00:00:57,960 inside of 'files' folder on our local 26 00:00:57,960 --> 00:01:00,180 computer, it is very important. 27 00:01:00,300 --> 00:01:02,370 Again, Docker containers are 28 00:01:02,370 --> 00:01:04,500 capable of modification and 29 00:01:04,500 --> 00:01:06,900 creation of the new files on your 30 00:01:06,930 --> 00:01:09,300 local computer. And this important 31 00:01:09,300 --> 00:01:11,820 conclusion we will use in the next 32 00:01:11,820 --> 00:01:13,680 examples where we will try to 33 00:01:13,680 --> 00:01:16,650 create persistent database and work 34 00:01:16,650 --> 00:01:18,390 with the same database from 35 00:01:18,390 --> 00:01:20,160 multiple containers for example, 36 00:01:20,160 --> 00:01:21,900 MongoDB containers or Redis 37 00:01:21,900 --> 00:01:24,450 containers or MySQL containers. 38 00:01:25,020 --> 00:01:26,880 Alright, before going on with the 39 00:01:26,880 --> 00:01:28,890 next example where we will use 40 00:01:28,890 --> 00:01:31,590 'mongo' image, let me quickly clear 41 00:01:31,590 --> 00:01:33,270 our containers that we have created 42 00:01:33,270 --> 00:01:35,640 before. Let me list them, 'docker ps 43 00:01:35,640 --> 00:01:37,950 -a'. And again, we could use 44 00:01:37,950 --> 00:01:41,730 command 'docker container prune' in 45 00:01:41,730 --> 00:01:43,290 order to remove all stopped 46 00:01:43,290 --> 00:01:48,300 containers. Type Yes here, and all 47 00:01:48,300 --> 00:01:50,190 stopped containers were removed. 48 00:01:50,460 --> 00:01:51,450 And if I'll have a look at 49 00:01:51,450 --> 00:01:53,482 containers now, 'docker ps - a' 50 00:01:53,482 --> 00:01:54,960 there are no containers, 51 00:01:54,960 --> 00:01:56,910 either stopped or running. 52 00:01:57,240 --> 00:01:59,070 Wonderful. Now we are ready to go 53 00:01:59,070 --> 00:02:01,200 on, and the next let's download 54 00:02:01,230 --> 00:02:03,810 'mongo' image and launch 'mongo' 55 00:02:03,810 --> 00:02:06,018 container. I will see you next. Bye-Bye. 56 00:02:06,018 --> 00:02:08,199 [no audio]