Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Analysis of the Storage and Construction process of docker operating system

2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces "the analysis of the storage and construction process of the docker operating system". In the daily operation, I believe that many people have doubts about the analysis of the storage and construction process of the docker operating system. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubts of "the storage and construction process analysis of the docker operating system". Next, please follow the editor to study!

The process of building docker operating system

1. Docker image (static mirror layer layer, dynamic json)

Linux kernel + ubuntu operating system distribution, form a working machine to let the user experience. Is it also possible to flexibly replace the ubuntu operating system distribution? So Docker can easily take advantage of this, and the technical means is Docker mirroring.

In Docker's architecture, the Docker image is similar to the "ubuntu operating system distribution" and can run on any Linux kernel that meets the requirements.

The above content is to look at what the Docker image is from a macro point of view, and then go further into the Docker image from a micro point of view. I just mentioned that "if MySQL 5.6 is installed in the Debian image, it becomes the mysql:5.6 image." in fact, the hierarchical concept of the Docker image is realized at this time. The underlying Debian operating system image is superimposed with a mysql layer to complete the construction of a mysql image. The concept of hierarchy is not difficult to understand. At this time, the general debian operating system image is called the parent image of the mysql mirror layer.

The content of the Docker image mainly consists of two parts: first, the content of the mirror layer file; second, the image json file.

Study the relationship between the image and the container: the container is a dynamic environment, and the files in each layer of the image belong to static content. However, the ENV, VOLUME, CMD and other contents of the Dockerfile need to be implemented in the running environment of the container, and these contents cannot be directly located in the file system content contained in each layer of the image. At this time, each Docker image will also contain the relationship between the json file record and the container.

2. Docker Daemon

The functions of Docker Daemon are as follows:

1. Use the Docker mirrored image layer file as the rootfs of the Docker container.

two。 Extract the dynamic files in the Docker image json file, determine the startup process, and configure the dynamic running environment for it.

The simple schematic diagram of Docker Daemon, Docker image and Docker container is as follows:

two。 File system, hierarchical file system

3. Process management, namespace

4. Resource Management, cgroup

At this point, the study of "Analysis of the Storage and Construction process of the docker operating system" is over. I hope to be able to solve everyone's doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report