After docker is successfully installed, execute sudo docker run hello-world command line, if it is the first time to execute, it will pull the image of hello-world from the remote to the local, and then run, display Hello world.

In Ubuntu, the local image is stored in the /var/lib/docker folder:

Related directories are described as follows.

/ var/lib/docker/image/overlay2: store image management data directory, named after the use of storage driver, on my ubuntu system, use the driver for overlay2.

Json is equivalent to the manifest.json file in SAP UI5, and the project. Json file in nodeJS:

The/var/lib/docker/image/overlay2 / distribution $: from the remote image metadata related to the local

The/var/lib/docker/image/overlay2 / imagedb: mirror database

/var/lib/docker/image/overlay2/imagedb/content:

The configuration of digest (the image ID) for each image level. You can see a sha256 subfolder in the Content folder.

If you go into this subfolder, you’ll see a file named after the image ID, which is where the first 12 bits of the image ID we see on the command line docker Images come from.

/ var/lib/docker/image/overlay2 / layerdb: image metadata of each layer.

If you enter sha256, you will see the chain ID of the layer:

Contents of the chain ID:

For more of Jerry’s original articles, please follow the public account “Wang Zixi “: