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

HTML table tag tutorial (46): table footer tag

The <tfoot> tag is used to define the style...

Detailed explanation of the use of Element el-button button component

1. Background Buttons are very commonly used, and...

Implementation of communication between Vue and Flask

Install axios and implement communication Here we...

Implementation of building custom images with Dockerfile

Table of contents Preface Introduction to Dockerf...

Detailed explanation of component development of Vue drop-down menu

This article example shares the specific code for...

Installation tutorial of MySQL 5.7 green version under windows2008 64-bit system

Preface This article introduces the installation ...

Several CSS3 tag shorthands (recommended)

border-radius: CSS3 rounded corners Syntax: borde...

Detailed explanation of Linux copy and paste in VMware virtual machine

1. Linux under VMware Workstation: 1. Update sour...

vue element el-transfer adds drag function

The Core Asset Management Project requires el-tra...

JavaScript microtasks and macrotasks explained

Preface: js is a single-threaded language, so it ...

HTML uses regular expressions to test table examples

Here is an example code for using regular express...

How to generate Vue user interface by dragging and dropping

Table of contents Preface 1. Technical Principle ...