You know, Now what is Docker image and what is Docker container?
And you are able to create multiple containers from the same Docker image and difference between Docker
image and Docker container is that you are not able to modify Docker image.
You are able only to read it or create other image on top of that image.
Also, when you create container, docker creates writable layer and you are able to modify or create
new files inside of the running container.
And I have just shown you that you are able to launch multiple containers based on the same image.
Now let me explain you what is Docker repository?
Probably you know, what is Git repository?
If you don't know, please check out my large course called Complete Git and GitHub guide where I explain
all details of git and GitHub.
But in short words git repository is simply a set of files and you are able using git to track changes
in repository.
You are also able to publish your git repository to hosting service like GitHub for example, or bitbucket
and that is git repository.
What is Docker Repository?
You are able to create Docker repository from Docker images and in every Docker repository you can have
different versions of Docker image and you are able to create different versions of specific Docker
image using tags.
By default, every Docker image should have at least single tag called latest, but you are able to
assign different tags to different versions of Docker images, and this set of Docker images with different
tags is called Docker Repository.
That's it.
For example, if I'll go to list of images here on this computer, let me exit from this BusyBox container
and enter Docker Images command.
I'll see such containers, for example, as WordPress and you'll see two such kind of containers with
two different tags, 5.4 and latest.
And that means that actually those two different images belong to same repository, but they were downloaded
from Docker Hub that is actually repository hosting service called Docker Registry.
And let's discuss what is Docker registry in the next lecture.
I'll see you just in a moment.
Bye bye.