Where are Docker images stored on the host machine?

后端 未结 29 2480
逝去的感伤
逝去的感伤 2020-11-22 06:28

I managed to find the containers under directory /var/lib/docker/containers, but I can\'t find the images.

What are the directories and files under

29条回答
  •  借酒劲吻你
    2020-11-22 07:07

    The images are stored in /var/lib/docker/graph//layer.

    Note that images are just diffs from the parent image. The parent ID is stored with the image's metadata /var/lib/docker/graph//json.

    When you docker run an image. AUFS will 'merge' all layers into one usable file system.

提交回复
热议问题