Docker Part 2: What is Docker?

In the previous part, we tried to learn, what problem Docker is actually trying to solve. That is a pre-requisite to know before to understand what the Docker is.

So, what is Docker?

Docker is a platform or we can say it is an independent ecosystem which is used to create and run containers.

The Docker Ecosystem contains the following components:

1. Docker Client

2. Docker Server

3. Docker Machine

4. Docker Image

5. Docker Hub

6. Docker Compose

We will learn about all of these components one by one.

If you remember, in the previous post, we tried to run the below command on our terminal

                                                docker run -it redis

So when we ran this command, Docker CLI reached out to Docker Hub to download a single file called image.

In the Docker world, an Image is a single file that contains all the dependencies and configurations required to run a particular program. This image will get stored in your local hard drive and later on we can use this image file to create a container

Container is an instance of an image. So basically it's kind of a running program. A container has all of its own resources which are required to run a program eg memory, networking, and hard disk space.

When we install Docker to our local system, then there are 2 programs that will get downloaded

Docker CLI and Docker Server

Docker CLI or Docker Client is a program that we can access from our computer's terminal or command prompt. We use it to issue some of the commands.

We also need to create one account to Docker Hub to start working with Docker.

Docker Server or Docker Damon is responsible for creating containers, images, and running containers.



Comments

Popular posts from this blog

HttpClient Part 2: Understanding HttpClientFactory in the .NET World

Demystifying AWS S3 Batch Operations: A Step-by-Step Guide

Understanding AWS KMS Keys: Simplified Guide with Use Cases and Best Practices