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

Let's talk about destructuring in JS ES6

Overview es6 adds a new way to get specified elem...

Native JavaScript message board

This article shares the specific code of JavaScri...

CSS specification BEM CSS and OOCSS sample code detailed explanation

Preface During project development, due to differ...

MySQL 5.5 installation and configuration graphic tutorial

Organize the MySQL 5.5 installation and configura...

Example of adding music video to HTML page

1. Video tag Supports automatic playback in Firef...

Detailed explanation of zabbix executing scripts or instructions on remote hosts

Scenario Requirements 1. We can use the script fu...

The visual design path of the website should conform to user habits

Cooper talked about the user's visual path, w...

WeChat applet implementation anchor positioning function example

Preface In the development of small programs, we ...

Detailed process of getting started with docker compose helloworld

Prerequisites Compose is a tool for orchestrating...

JavaScript implements three common web effects (offset, client, scroll series)

Table of contents 1. Element offset series 2. Ele...

The qualities and abilities a web designer should have

Web design is an emerging marginal industry that c...

MySQL slow query method and example

1. Introduction By enabling the slow query log, M...

Install MySQL (including utf8) using Docker on Windows/Mac

Table of contents 1. Docker installation on Mac 2...

How to use Node.js to determine whether a png image has transparent pixels

background PNG images take up more storage space ...