Detailed explanation of where the images pulled by docker are stored

Detailed explanation of where the images pulled by docker are stored

The commands pulled by docker are stored in the /var/lib/docker/ folder by default.

View the /var/lib/docker/image/overlay2/repositories.json file:

It is exactly the same as the content of docker images.

1. Enter the docker directory, the file structure is as follows:

2. Enter the containers directory, which stores the ID of the pulled container, that is, a serial number corresponding to a container.

Enter and select a serial number at random. After entering, you will find that the specific structure of the container is as follows:

3. Enter the image directory

This directory stores information about the pulled images. In the figure below, you can see that there is an overlay2 directory under the images directory. The repositories.json file in this directory records the detailed information of the pulled image: image name, image ID, etc. (Note: Older Docker versions may not have an overlay2 directory, but an aufs directory, which also has similar directories and files)

For comparison, the following docker command is used directly to display the image information:

You can see that the repositories.json file above records the pulled image information.

This is the end of this article about where the images pulled by docker are stored. For more information about docker pull image storage, please search for previous articles on 123WORDPRESS.COM or continue to browse the following related articles. I hope you will support 123WORDPRESS.COM in the future!

You may also be interested in:
  • Detailed explanation of where the image pulled by docker is stored
  • Docker pull image and tag operation pull | tag
  • Docker configuration Alibaba Cloud image acceleration pull implementation
  • Solution to the problem of slow docker pull image speed
  • How to solve the problem of slow docker pull image speed
  • Detailed explanation of where the image files pulled by docker are stored
  • Solve the problem of docker pull image error

<<:  How to use time as a judgment condition in MySQL

>>:  JavaScript implements password box input verification

Recommend

How to use webpack and rollup to package component libraries

Preface I made a loading style component before. ...

JS achieves five-star praise effect

Use JS to implement object-oriented methods to ac...

Detailed explanation of mysql exists and not exists examples

Detailed explanation of mysql exists and not exis...

Docker-compose creates a bridge, adds a subnet, and deletes a network card

1. Create a docker network card [root@i ~]# brctl...

Simple web design concept color matching

(I) Basic concepts of web page color matching (1) ...

vsftpd virtual user based on MySql authentication

Table of contents 1. MySQL installation 1.2 Creat...

Example of creating circular scrolling progress bar animation using CSS3

theme Today I will teach you how to create a circ...

A solution to a bug in IE6 with jquery-multiselect

When using jquery-multiselect (a control that tra...

Example of adding attributes using style in html

Add inline styles to the required links: Copy code...

MySQL 8.0 New Features - Introduction to Check Constraints

Table of contents Preface Check Constraints Creat...

More popular and creative dark background web design examples

Dark background style page design is very popular...