Skip to main content

Command Palette

Search for a command to run...

The Architecture of Docker Understanding Its Components

Published
โ€ข1 min read
The Architecture of Docker 

Understanding Its Components

๐Ÿ› ๏ธ Understanding Docker Architecture ๐Ÿ› ๏ธ

Docker architecture consists of a Docker Engine, which is a client-server application with three main components:

  1. Server ๐Ÿ–ฅ๏ธ

    • A long-running program called a daemon process.
  2. REST API ๐ŸŒ

    • Interfaces are those that programs use to communicate with the daemon and give instructions.
  3. CLI (Command Line Interface) Client ๐Ÿ’ป

    • The Docker command is used to control or interact with the Docker daemon through scripting or direct commands.

The Docker CLI uses the Docker REST API to interact with the Docker daemon. Many Docker applications use this underlying API and CLI.

How Docker Works:

  • Docker Client ๐Ÿง‘โ€๐Ÿ’ป

    • Runs a command, translates it using the REST API, and sends it to the Docker Daemon (server).
  • Docker Daemon โš™๏ธ

    • Accepts the request and interacts with the operating system to build Docker images and run Docker containers.
  • Docker Image ๐Ÿ–ผ๏ธ

    • A template of instructions used to create containers.

Docker uses a client-server architecture to efficiently build, ship, and run applications. ๐Ÿš€