ITZone

General knowledge about Docker and Docker Swarm (Part 1 – Docker Overview)

I. What is Docker?

II. Docker Components & Benefits

Component

Docker consists of 3 main components:

A text file without an extension, containing the specifications of a software executable field, the structure for the Docker image. Docker images can be generated automatically by reading the instructions in the Dockerfile. From those commands, Docker will build a Docker image

Each container includes everything needed to run it: code, runtime, system tools, system libraries, settings. Each container is like a real operating system, inside each container will run an application.

III. Steps to use Docker

Containers are meant to make applications easy to build, move, and run. The process of putting an application running in a container can be understood as follows:

  1. First we start with the app code and its dependencies
  2. Create a Dockerfile describing the app, its dependencies and how to run the app
  3. Build Dockerfile to image
  4. Push newly built image to registry(option)
  5. Run container from image

IV. What is Docker Swarm? Docker Swarm Components

Concept:  Docker Swarm is a native clustering tool for Docker. Allows us to gather a number of Docker hosts together into a cluster and we can see it as a single virtual Docker host. Supports the creation and management of containers or Container Orchestration systems

Ingredient:

V. Docker Swarm Benefits & Features

References

[1]. How node works

[2]. Docker docs

[3]. Docker là gì?

Share the news now