HOW CLI WORKS

1. Suppose you write docker run hello-world. It will first check that it is present in your local system or not.

2. If it is not present in your local system then It will go to docker registry.

3. It will pull and download the image from the registry, will run the image into container and says the command that is assigned to that image.

DOCKER HOST

Docker Hosts are the machines on which Docker daemon runs as a process and allow us to run the application as a container.

docker registeries

1. This is where Docker images are stored. Docker Hub is a public registry that anyone can use.
2. You can also store images on your local machine or push them to the public registry.
next