Home>Article>Operation and Maintenance> Quickly understand the Docker architecture

Quickly understand the Docker architecture

Guanhui
Guanhui forward
2020-07-23 17:39:12 2167browse

Quickly understand the Docker architecture

Docker includes three basic concepts:

  • Image: Docker image (Image) is equivalent to a root file system. For example, the official image ubuntu:16.04 contains a complete set of the root file system of the Ubuntu16.04 minimal system.

  • Container (Container): The relationship between image (Image) and container (Container) is just like the classes and instances in object-oriented programming. The image is a static definition, and the container Is the entity when the image is running. Containers can be created, started, stopped, deleted, paused, etc.

  • Warehouse (Repository): The warehouse can be regarded as a code control center, used to save images.

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

Docker containers are created through Docker images.

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

docker Object-oriented
Container Object
Mirror Class

##Concept Description
Docker image (Images)

Docker image is a template for creating Docker containers, such as Ubuntu system.

Docker Container(Container)

A container is an application or a group of applications that runs independently and is a mirror runtime entity.

Docker Client (Client)

Docker client uses the Docker SDK (https ://docs.docker.com/develop/sdk/) communicates with the Docker daemon.

Docker Host (Host)

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

Docker Registry

Docker warehouse is used to save images and can be understood as a code warehouse in code control.

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

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

Usually, a warehouse will contain images of different versions of the same software, and tags are often used to correspond to each version of the software. We can specify which version of this software is the image through the format of :
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.

Recommended tutorial: "

Docker"

The above is the detailed content of Quickly understand the Docker architecture. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:jb51.net. If there is any infringement, please contact admin@php.cn delete