Home > Operation and Maintenance > Docker > Where is the image stored after docker pull pulls it?

Where is the image stored after docker pull pulls it?

coldplay.xixi
Release: 2020-06-13 12:52:15
Original
7124 people have browsed it

Where is the image stored after docker pull pulls it?

Where is the image stored after docker pull pulls it?

Docker pull pulls the image and saves it Location:

Environment

Ubuntu18.04

Docker 19.03.2

Mirror location

The following operations must be done under root Proceed with user permissions.

1. Enter the docker directory

cd /var/lib/docker
Copy after login

The file structure is as follows:

Where is the image stored after docker pull pulls it?

2. Enter containers Directory

This directory stores the pulled container ID, which is a serial number corresponding to a container.

Where is the image stored after docker pull pulls it?

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

Where is the image stored after docker pull pulls it?

3 . Enter the image directory

This directory stores the information about the pulled image. As you can see in the picture below, 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 the overlay2 directory, but the aufs directory. There are also similar directories and files in the aufs directory)

Where is the image stored after docker pull pulls it?

For comparison, the following Directly use the docker command to display the image information:

docker image ls
Copy after login

Where is the image stored after docker pull pulls it?

You can see that the image information recorded in the repositories.json file above is the pulled image information.

Recommended tutorial: "docker video tutorial"

The above is the detailed content of Where is the image stored after docker pull pulls it?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template