DEV Community

Cover image for What is Docker
Yashwant Patil
Yashwant Patil

Posted on • Updated on

What is Docker

Part I : Introduction.
- What is docker.
- What is Containers.
- Need of Containers.
- Examples.
- Docker Architecture.

Alt Text

What is Docker:

Docker is use to manage the containers. it is a opensource software platform for building applications based on containers.
it is a tool that designed to make deployment easier and to create,run application inside a container.

What is Container:

Alt Text

A container is isolated from each other.

A container is a standard unit of software and it basically used to reduce compatibility issues between various versions of components in software application and make make your application portable and run anywhere.

it packages up code and all its dependencies so the application runs quickly and reliably.

A Docker container image is a lightweight, standalone, executable package of software that includes everything needed to run an application code, runtime, system tools, system libraries and settings.

Needs Of Containers:

Due to containers,

  • High Availability.
  • small footprint and portability.
  • the same hardware can support an exponentially larger number of containers than virtual machines.
  • Flexible Scaling.
  • dramatically reducing infrastructure costs and enabling more apps to deploy faster.
  • Less Maintenance.
  • Fast.
  • Reuseability of a code.

Examples:
_- Google runs there applications inside containers like Gmail,Google Map,YouTube and may more.

  • The popular game name as pokemon go also used the container to run, and handle the traffic._

Docker Engine:

Alt Text

Docker Demon- Docker demon is service which runs in a background. it manages Docker images, containers, networks, and storage volumes.The Docker daemon constantly listens for Docker API requests and processes them.

Docker CLI- A command line interface client for interacting with the Docker daemon. Helps to manage the containers.

Docker Engine REST API: An API used by applications to interact with the Docker daemon.

Docker Architecture
Alt Text

In Docker architecture, there are three main blocks:

- Docker Client- The Docker client enables users to interact with Docker. The Docker client can reside on the same host.By using Docker client user can communicate with the docker hosts.
User can pass instruction like docker search, docker push, docker pull...

- Docker Hosts- Docker hosts docker demon is resides, which can takes off the images and containers.The Docker host provides a complete environment to execute and run applications.It comprises of the Docker daemon, Images, Containers, Networks, and Storage.

-Docker Demon- Docker demon is service which runs in a background. it manages Docker images, containers, networks, and storage volumes.The Docker daemon constantly listens for Docker API requests and processes them.

-Images-Images are a read-only binary template used to build containers. The images are store at docker registry.

-Docker Registry- Where all the images are saved.

Top comments (0)