1 00:00:00,000 --> 00:00:04,300 [Intro Music] 2 00:00:04,319 --> 00:00:06,239 Alright guys, let's now start from 3 00:00:06,239 --> 00:00:08,039 scratch, and let's download the 4 00:00:08,039 --> 00:00:10,199 first image from Docker Hub. Recap 5 00:00:10,199 --> 00:00:12,779 the Docker Hub is a Docker Registry 6 00:00:12,869 --> 00:00:15,389 that hosts Docker Repositories. And 7 00:00:15,419 --> 00:00:17,459 Docker Repository is a set of 8 00:00:17,489 --> 00:00:20,099 images with different versions. All 9 00:00:20,099 --> 00:00:22,109 right, we will use 'docker pull' 10 00:00:22,109 --> 00:00:23,999 command in order to download image 11 00:00:23,999 --> 00:00:25,799 from Docker Hub. Please note that 12 00:00:25,799 --> 00:00:27,179 there is alternative version for 13 00:00:27,179 --> 00:00:28,499 this command with Management 14 00:00:28,499 --> 00:00:31,379 Command, that is 'docker image pull'. 15 00:00:32,189 --> 00:00:34,349 And first let's open up Docker Hub 16 00:00:34,349 --> 00:00:36,899 page, and let's find here image 17 00:00:36,959 --> 00:00:40,079 called 'hello-world'. Type 'hello-world'; 18 00:00:40,139 --> 00:00:41,969 and here is this image on the 19 00:00:41,969 --> 00:00:43,500 list, please click on it. 20 00:00:43,500 --> 00:00:45,500 [no audio] 21 00:00:45,500 --> 00:00:47,700 On this page, you'll see details about this 22 00:00:47,789 --> 00:00:49,349 image, and here is the command that 23 00:00:49,349 --> 00:00:51,209 you're able to use in order to pull 24 00:00:51,239 --> 00:00:53,549 this image from Docker Hub to your 25 00:00:53,579 --> 00:00:55,979 local cache. Notice that this is 26 00:00:55,979 --> 00:00:58,409 the most simple image available and 27 00:00:58,409 --> 00:01:01,049 basically it is useless and all 28 00:01:01,049 --> 00:01:02,789 what it does, it simply prints 29 00:01:02,819 --> 00:01:04,739 block of text to terminal, that's 30 00:01:04,769 --> 00:01:07,078 all. Alright, let's now use 'docker 31 00:01:07,078 --> 00:01:08,729 pull' command in order to pull this 32 00:01:08,759 --> 00:01:10,649 'hello-world' image. Let me go to 33 00:01:10,649 --> 00:01:12,809 terminal, verify that at the moment 34 00:01:12,839 --> 00:01:14,669 there are no images in my local 35 00:01:14,669 --> 00:01:16,979 cache, and now let's use 'docker 36 00:01:16,979 --> 00:01:19,559 pull' command, and type here name of 37 00:01:19,559 --> 00:01:22,769 the image, 'hello-world', like 38 00:01:22,769 --> 00:01:25,709 this. Using default tag: latest. 39 00:01:26,879 --> 00:01:28,649 Pulling from library/hello-world 40 00:01:29,249 --> 00:01:32,159 Pulling FS layer. Pull complete. Here 41 00:01:32,159 --> 00:01:34,919 is sha256 Digest for this 42 00:01:34,919 --> 00:01:36,959 particular image. And, Status: 43 00:01:36,989 --> 00:01:39,569 Downloaded newer image for hello- 44 00:01:39,569 --> 00:01:42,809 world:latest. And now if I 45 00:01:42,809 --> 00:01:45,119 check images in my local cache, I 46 00:01:45,119 --> 00:01:47,069 should see hello-world image on the 47 00:01:47,069 --> 00:01:49,439 list. In this output I see 48 00:01:49,469 --> 00:01:52,349 REPOSITORY name - hello-world, I see 49 00:01:52,379 --> 00:01:55,859 TAG - latest, IMAGE ID here is this 50 00:01:55,859 --> 00:01:58,559 ID. Notice that this ID is a short 51 00:01:58,589 --> 00:02:01,079 version of long ID of this image. 52 00:02:01,469 --> 00:02:03,629 Next I see when this image was 53 00:02:03,629 --> 00:02:06,629 created, date is 4 months ago; and 54 00:02:06,629 --> 00:02:10,169 the SIZE is only 13 kilobytes. It 55 00:02:10,169 --> 00:02:12,119 is the most smallest image 56 00:02:12,149 --> 00:02:15,869 available. Alright, let's now try 57 00:02:15,869 --> 00:02:17,969 to pull another image using same 58 00:02:17,969 --> 00:02:19,739 command 'docker pull, but probably 59 00:02:19,739 --> 00:02:21,839 let's use 'docker image pull' command 60 00:02:21,839 --> 00:02:23,009 in order to show you that this 61 00:02:23,009 --> 00:02:24,659 command is actually an alternative 62 00:02:24,659 --> 00:02:26,159 version for 'docker pull' command 63 00:02:26,369 --> 00:02:28,859 'docker image pull', and let's pull 64 00:02:28,889 --> 00:02:31,919 for example 'busybox' image, it is 65 00:02:31,919 --> 00:02:34,619 another popular small image. Let's 66 00:02:34,619 --> 00:02:37,439 press Enter. Again same output - 67 00:02:37,439 --> 00:02:38,939 Using default tag: latest. 68 00:02:39,149 --> 00:02:41,669 Pulling from library/busybox. Pull 69 00:02:41,669 --> 00:02:44,549 complete. Digest. Downloaded newer 70 00:02:44,579 --> 00:02:47,369 image for busybox:latest. And now 71 00:02:47,399 --> 00:02:49,499 if I will enter 'docker images' 72 00:02:49,619 --> 00:02:52,049 command, I will see two images in 73 00:02:52,049 --> 00:02:54,869 my local cache. And please notice 74 00:02:54,869 --> 00:02:58,019 that size of busybox image is a bit 75 00:02:58,019 --> 00:03:00,479 more than one megabyte. It is of 76 00:03:00,479 --> 00:03:02,159 course larger than the heloo-world 77 00:03:02,309 --> 00:03:04,229 image, but anyway it is really, 78 00:03:04,229 --> 00:03:07,139 really small. This how we were able 79 00:03:07,139 --> 00:03:09,209 to download images from Docker Hub. 80 00:03:09,539 --> 00:03:11,369 And please notice that we were not 81 00:03:11,369 --> 00:03:13,289 prompted to enter any user name or 82 00:03:13,289 --> 00:03:14,879 password., and that's because Docker 83 00:03:14,879 --> 00:03:17,999 Hub is free for use to anybody, and 84 00:03:17,999 --> 00:03:19,799 you are able to download the 85 00:03:19,799 --> 00:03:21,809 official images like busybox, hello- 86 00:03:21,809 --> 00:03:23,639 world without any credentials. 87 00:03:24,599 --> 00:03:26,399 Alright, that's all for this short 88 00:03:26,399 --> 00:03:27,899 lecture where I have shown you how 89 00:03:27,899 --> 00:03:30,089 you're able to get images to pull 90 00:03:30,089 --> 00:03:32,639 images from Docker Hub. Next, let 91 00:03:32,639 --> 00:03:34,469 me explain you structure of the 92 00:03:34,499 --> 00:03:37,259 image and explain you why here we 93 00:03:37,259 --> 00:03:39,899 have seen messages like Pooling FS 94 00:03:39,929 --> 00:03:41,999 layer, and afterwards you have seen 95 00:03:41,999 --> 00:03:44,009 message, Pull complete. Let's talk 96 00:03:44,009 --> 00:03:45,509 about it in the next lecture. I'll 97 00:03:45,509 --> 00:03:46,529 see you there. Bye-Bye. 98 00:03:46,529 --> 00:03:49,354 [no audio]