Home > Article > Operation and Maintenance > What is the architecture of docker?
Docker is a client-server (C/S) architecture program. The docker client only needs to make a request to the docker server or daemon process, and the server or daemon process will complete all the work and return the results.
The operating environment of this tutorial: linux7.3 system, docker-1.13.1 version, Dell G3 computer.
docker architecture diagram
As can be seen from the above figure, Docker is running It is divided into Docker engine (server daemon) and client tools. When we use various docker commands every day, we are actually using client tools to interact with the Docker engine.
Client Client
Docker is a client-server (C/S) architecture program. The Docker client only needs to make a request to the Docker server or daemon, and the server or daemon will do all the work and return the results. Docker provides a command line tool Docker and a complete set of RESTful APIs. You can run the Docker daemon and client on the same host, or you can connect from a local Docker client to a remote Docker daemon running on another host.
Host host (docker engine)
A physical or virtual machine used to execute the Docker daemon and containers.
Image image
What is a Docker image? To simply understand, a Docker image is a Linux file system (Root FileSystem). This file system contains programs and corresponding data that can run in the Linux kernel.
Start a container through an image. An image is an executable package that includes everything needed to run an application: including code, runtime, libraries, environment variables, configuration files, etc.
Docker packages App files into an image, and uses storage technology similar to multiple snapshots to achieve:
Multiple Apps can share the same underlying image (initial operating system image) ;
The IO operations during App runtime are isolated from the image files;
By mounting directories or volumes (Volume) containing different configuration/data files, a single App image can be used to run countless Containers for different businesses.
Recommended learning: "docker video tutorial"
The above is the detailed content of What is the architecture of docker?. For more information, please follow other related articles on the PHP Chinese website!