Where are Docker images stored on the host machine?

后端 未结 29 2303
逝去的感伤
逝去的感伤 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:05

    On Fedora, Docker uses LVM for storage if available. On my system docker info shows:

    Storage Driver: devicemapper
     Pool Name: vg01-docker--pool
     Pool Blocksize: 524.3 kB
     Base Device Size: 10.74 GB
     Backing Filesystem: xfs
     Data file:
     Metadata file:
     Data Space Used: 9.622 GB
     ...
    

    In that case, to increase storage, you will have to use LVM command line tools or compatible partition managers like blivet.

提交回复
热议问题