Introduction to Docker Architecture

Introduction to Docker Architecture

Docker includes three basic concepts:

  • Image: A Docker image is equivalent to a root file system. For example, the official image ubuntu:16.04 contains a complete root file system of the Ubuntu 16.04 minimal system.
  • Container: The relationship between an image and a container is like that between a class and an instance in object-oriented programming. An image is a static definition, and a container is an entity at the image runtime. Containers can be created, started, stopped, deleted, paused, etc.
  • Repository: A repository can be seen as a code control center for storing images.

Docker uses a client-server (C/S) architecture model and uses a remote API to manage and create Docker containers.

Docker containers are created from Docker images.

The relationship between containers and images is similar to that between objects and classes in object-oriented programming.

docker Object-oriented
container Object
Mirror kind

concept illustrate

Docker Images

A Docker image is a template used to create a Docker container, such as an Ubuntu system.

Docker Container

A container is an independently running application or a group of applications, and is an entity at the runtime of an image.

Docker Client

The Docker client communicates with the Docker daemon through the command line or other tools using the Docker SDK (https://docs.docker.com/develop/sdk/).

Docker Host

A physical or virtual machine used to execute the Docker daemon and containers.

Docker Registry

The Docker repository is used to store images and can be understood as a code repository in code control.

Docker Hub (https://hub.docker.com) provides a huge collection of images for use.

A Docker Registry can contain multiple repositories; each repository can contain multiple tags; each tag corresponds to an image.

Typically, a repository contains images of different versions of the same software, and tags are often used to correspond to different versions of the software. We can use the format of <warehouse name>:<label> to specify which version of the software is the mirror. If no tag is given, latest is used as the default tag.

Docker Machine

Docker Machine is a command line tool that simplifies Docker installation. Through a simple command line, you can install Docker on the corresponding platform, such as VirtualBox, Digital Ocean, and Microsoft Azure.

The above is the detailed content of the introduction to Docker architecture. For more information about Docker architecture, please pay attention to other related articles on 123WORDPRESS.COM!

You may also be interested in:
  • Architecture and component description of docker private library Harbor
  • Tutorial on building a master-slave replication architecture for MySQL 5.7 Docker

<<:  Detailed explanation of the download process of the mysql-connector-java.jar package

>>:  Detailed explanation of several solutions for JavaScript interruption requests

Recommend

Nginx cache files and dynamic files automatic balancing configuration script

nginx Nginx (engine x) is a high-performance HTTP...

Summary of various methods for Vue to achieve dynamic styles

Table of contents 1. Ternary operator judgment 2....

A brief discussion on the execution details of Mysql multi-table join query

First, build the case demonstration table for thi...

Complete steps for uninstalling MySQL database

The process of completely uninstalling the MySQL ...

Analysis of parameter transfer process of driver module in Linux

Declare the parameter name, type and permission y...

How to monitor array changes in Vue

Table of contents Preface Source code Where do I ...

Vue3 implements Message component example

Table of contents Component Design Defining the f...

Alpine Docker image font problem solving operations

1. Run fonts, open the font folder, and find the ...

Rsync+crontab regular synchronization backup under centos7

Recently, I want to regularly back up important i...

Vue+Element UI realizes the encapsulation of drop-down menu

This article example shares the specific code of ...

vue-cropper component realizes image cutting and uploading

This article shares the specific code of the vue-...

Introduction to common commands and shortcut keys in Linux

Table of contents 1 System Introduction 2 System ...