docker pull down the image are stored to where

Docker pull down commands are present by default / var / lib / docker / folder.

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

Exactly the same content and the docker images.

1, into the docker directory, the file structure is as follows:

 

 2. containers into the directory, the directory ID is already stored in the container is pulled in, i.e., a sequence number, corresponding to one container.

 

 Select not enter a serial number into the particular structure of the container was found as follows:

 

 3. Go to image directory

 

 This directory is stored in the image information has been pulled in. Figure below can see a directory overlay2 images directory, the file details repositories.json details pulling mirrored in the directory: YES image name, image ID and the like. (Note: You may not overlay2 directory docker older version, but aufs directory, there are tantamount to the same directory and the files in the directory aufs)

 

 As a comparison, the following command directly docker display image information:

 

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

 

Guess you like

Origin www.cnblogs.com/zouhong/p/12154241.html