1
00:00:04,059 --> 00:00:07,450
You know, Now what is Docker image and what is Docker container?

2
00:00:07,450 --> 00:00:13,240
And you are able to create multiple containers from the same Docker image and difference between Docker

3
00:00:13,240 --> 00:00:18,490
image and Docker container is that you are not able to modify Docker image.

4
00:00:18,490 --> 00:00:23,590
You are able only to read it or create other image on top of that image.

5
00:00:23,830 --> 00:00:30,280
Also, when you create container, docker creates writable layer and you are able to modify or create

6
00:00:30,310 --> 00:00:33,040
new files inside of the running container.

7
00:00:33,370 --> 00:00:38,920
And I have just shown you that you are able to launch multiple containers based on the same image.

8
00:00:39,070 --> 00:00:42,910
Now let me explain you what is Docker repository?

9
00:00:43,210 --> 00:00:46,000
Probably you know, what is Git repository?

10
00:00:46,000 --> 00:00:51,940
If you don't know, please check out my large course called Complete Git and GitHub guide where I explain

11
00:00:51,940 --> 00:00:54,010
all details of git and GitHub.

12
00:00:54,010 --> 00:01:01,330
But in short words git repository is simply a set of files and you are able using git to track changes

13
00:01:01,330 --> 00:01:02,740
in repository.

14
00:01:02,770 --> 00:01:11,210
You are also able to publish your git repository to hosting service like GitHub for example, or bitbucket

15
00:01:11,210 --> 00:01:13,160
and that is git repository.

16
00:01:13,190 --> 00:01:14,930
What is Docker Repository?

17
00:01:14,960 --> 00:01:23,600
You are able to create Docker repository from Docker images and in every Docker repository you can have

18
00:01:23,600 --> 00:01:31,310
different versions of Docker image and you are able to create different versions of specific Docker

19
00:01:31,310 --> 00:01:33,290
image using tags.

20
00:01:33,800 --> 00:01:41,300
By default, every Docker image should have at least single tag called latest, but you are able to

21
00:01:41,300 --> 00:01:49,610
assign different tags to different versions of Docker images, and this set of Docker images with different

22
00:01:49,610 --> 00:01:52,430
tags is called Docker Repository.

23
00:01:52,610 --> 00:01:53,660
That's it.

24
00:01:53,780 --> 00:02:00,830
For example, if I'll go to list of images here on this computer, let me exit from this BusyBox container

25
00:02:00,830 --> 00:02:03,080
and enter Docker Images command.

26
00:02:03,410 --> 00:02:11,990
I'll see such containers, for example, as WordPress and you'll see two such kind of containers with

27
00:02:11,990 --> 00:02:15,230
two different tags, 5.4 and latest.

28
00:02:15,470 --> 00:02:24,230
And that means that actually those two different images belong to same repository, but they were downloaded

29
00:02:24,230 --> 00:02:30,830
from Docker Hub that is actually repository hosting service called Docker Registry.

30
00:02:30,830 --> 00:02:34,040
And let's discuss what is Docker registry in the next lecture.

31
00:02:34,040 --> 00:02:35,660
I'll see you just in a moment.

32
00:02:35,690 --> 00:02:36,260
Bye bye.

