Docker architecture


Docker uses the 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.

DockerObject-oriented
ContainerObject
MirrorClass

1050.png

## Docker images (Images)

Docker images are templates used to create Docker containers.

Docker Container (Container)

A container is an application or a group of applications that runs independently.

Docker Client (Client)

Docker client uses the Docker API (https ://docs.docker.com/reference/api/docker_remote_api) Communicates with the Docker daemon.

Docker Host (Host)

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

Docker warehouse (Registry)

Docker warehouse is used to save images, which can be understood as code in code control storehouse.

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


Docker Machine

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