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

What is the Docker container file system like

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)05/31 Report--

This article mainly explains the "Docker container file system is how", the content of the article is simple and clear, easy to learn and understand, now please follow the editor's ideas slowly in depth, together to study and learn "Docker container file system is how" it!

One: Docker image

Docker image is the product of Dockerfile and the premise of Docker container.

With regard to Docker mirroring, it has the following features:

. Generated by Dockerfile

. Present a hierarchical structure

. Each layer of image contains: image file and image json metadata information

Two: Docker container

The Docker container is the running embodiment of the Docker image. In a nutshell, you run the process on top of the Docker image. There are two ways to start a process. Users can choose to run commands specified by themselves or commands specified within the Docker image.

Three: Docker Container File system

FROM ubuntu:14.04: set the basic image. All the mirror layers of the basic image ubuntu:14.04 will be used. For simplicity, it is shown as a whole in the figure.

ADD run.sh /: add the file run.sh of the directory where Dockerfile resides to the root directory of the image. In this case, the image of the new layer has only one item, that is, run.sh under the root directory.

VOLUME / data: set the VOLUME of the image. The path of this VOLUME inside the container is / data. It is important to note that no files have been added to the image of the new layer at this time, but the mirrored json file has been updated to obtain this information when the container is started from this image.

CMD [. / run.sh "]: sets the default execution entry of the image. This command also does not add any files to the new image, but only updates the json file of the new image based on the json file of the previous image.

Thank you for reading, the above is the content of "what the Docker container file system is". After the study of this article, I believe you have a deeper understanding of how the Docker container file system is, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

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