Docker

7/3/2021 Docker

#Docker

# I. Docker overview:

Docker is an open platform for developing, shipping, and running applications.Docker enables you to separate your applications from your infrastructure so you can deliver software quickly. With Docker, you can manage your infrastructure in the same ways you manage your applications. By taking advantage of Docker’s methodologies for shipping, testing, and deploying code quickly, you can significantly reduce the delay between writing code and running it in production.

  • Docker là 1 nền tảng cho develop, deploy và run application.
  • Đồng nhất môi trường của các môi trường khác nhau.
  • Tạo các môi trường độc lập và tách biệt để khởi chạy và phát triển ứng dụng và môi trường này được gọi là container.

# II. Docker architecture:

Docker architecture

# The Docker daemon:

The Docker daemon (dockerd) listens for Docker API requests and manages Docker objects such as images, containers, networks, and volumes. A daemon can also communicate with other daemons to manage Docker services.

Server Docker cho yêu cầu từ Docker API. Nó quản lý images, containers, networks và volume.

# The Docker client

The Docker client (docker) is the primary way that many Docker users interact with Docker. When you use commands such as docker run, the client sends these commands to dockerd, which carries them out. The docker command uses the Docker API. The Docker client can communicate with more than one daemon.

  • Giúp tương tác với docker daemon khi sử dụng command.
  • Docker command sử dụng docker API.
  • Docker client có thể giao tiếp với nhiều daemon.

Refer: https://docs.docker.com/