What is Docker.qcow2?

前端 未结 2 1722
长情又很酷
长情又很酷 2021-01-07 20:00

I was looking at my disk with DaisyDisk and I have a 30GB something called Docker.qcow2. More specifically, DaisyDisk puts it under ~/Library/Containers/com.docker.doc

2条回答
  •  抹茶落季
    2021-01-07 20:31

    The .qcow2 file is exposed to the VM as a block device with a maximum size of 64GiB by default. As new files are created in the filesystem by containers, new sectors are written to the block device. These new sectors are appended to the .qcow2 file causing it to grow in size, until it eventually becomes fully allocated. It stops growing when it hits this maximum size.

    You can stop Docker and delete this file, however deleting it will also remove all your containers and images. And Docker will recreate this file on start.

提交回复
热议问题