Detailed explanation of where the image pulled by docker is stored

Detailed explanation of where the image pulled by docker is stored

20200804Addendum: The article may be incorrect. You can look up other answers.

docker pull xxx, you can pull down the desired image and use it directly, but where is the pulled image stored? Here is a record:

The Docker version here is: Docker version 1.13.1

1. Enter the docker directory as follows:

root@iZuf6axmuekh1n14dwcufmZ:/# cd var/lib/docker/
root@iZuf6axmuekh1n14dwcufmZ:/var/lib/docker# ls
aufs containers image network plugins swarm tmp trust volumes

2. Enter containers, each serial number is a mirror, as follows:

cd containers/
2addde372f5b4850ab167f1067db525313e1569e7117074841cc171acca7621d 4ce1634ce6f17474c8e6696bcf428e621f8c9572e1387316cf8183c97f4ad271

3. Enter one of the images and find the directory structure as follows. This is the content of this image, as follows:

cd 2addde372f5b4850ab167f1067db525313e1569e7117074841cc171acca7621d/
2addde372f5b4850ab167f1067db525313e1569e7117074841cc171acca7621d-json.log checkpoints config.v2.json hostconfig.json hostname hosts resolv.conf resolv.conf.hash shm

4. In the containers directory, there is a folder called image. Enter it as follows:

cd images/aufs 
distribution imagedb layerdb repositories.json

There is a repositories.json file in it, which records some information about the image in detail:

{"Repositories":{"mysql":{"mysql:latest":"sha256:7d83a47ab2d2d0f803aa230fdac1c4e53d251bfafe9b7265a3777bcc95163755","mysql@sha256:1f95a2ba07ea2ee2800ec8ce3b5370ed4754b0a71d9d11c0c35c934e9708dcf1":"sha256:7d83a47ab2d2d0f803aa230fdac1c4e53d251bfafe9b7265a3777bcc95163755"},"tomcat":{"tomcat:latest":"sha256:3dcfe809147daf54fbdbe1f6886b4c49df63f28e2b3c8ac119fef6a7f7490d3c","tomcat@sha256:d167fd5df11d7a7f7a3b04bd08a021948c67c92932ed38c740296c2ae69f67a3":"sha256:3dcfe809147daf54fbdbe1f6886b4c49df63f28e2b3c8ac119fef6a7f7490d3c"}}}

(If the image does not have an aufs directory, it may be like this

 [root@izbp163wlhi02tcaxyu image]# ls
overlay2
[root@izbp163wlhi02tcaxyu image]# cd overlay2/
[root@izbp163wlhi02tcaxyu overlay2]# ls
distribution imagedb layerdb repositories.json

The command line is as follows:

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:
  • Docker pull image and tag operation pull | tag
  • Docker configuration Alibaba Cloud image acceleration pull implementation
  • Detailed explanation of where the images pulled by docker are stored
  • 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

<<:  Detailed explanation of Javascript basics

>>:  XHTML three document type declarations

Recommend

Steps to deploy Docker project in IDEA

Now most projects have begun to be deployed on Do...

MySQL horizontal and vertical table conversion operation implementation method

This article uses examples to illustrate how to i...

MySQL PXC builds a new node with only IST transmission (recommended)

Demand scenario: The existing PXC environment has...

mysql startup failure problem and scenario analysis

1. One-stop solution 1. Problem analysis and loca...

docker logs - view the implementation of docker container logs

You can view the container logs through the docke...

MySQL data duplicate checking and deduplication implementation statements

There is a table user, and the fields are id, nic...

MySQL 5.7.18 Installer installation download graphic tutorial

This article records the detailed installation tu...

61 Things Every Web Developer Should Know

Normally, you'll need to read everyone's s...

MySQL series multi-table join query 92 and 99 syntax examples detailed tutorial

Table of contents 1. Cartesian product phenomenon...

Vue implements small notepad function

This article example shares the specific code of ...

MySQL 8.0.15 installation and configuration tutorial under Win10

What I have been learning recently involves knowl...

How to use Docker containers to implement proxy forwarding and data backup

Preface When we deploy applications to servers as...

MySQL 8.0.11 installation tutorial with pictures and text

There are many tutorials on the Internet, and the...