Where are Docker images stored on the host machine?

后端 未结 29 1717
逝去的感伤
逝去的感伤 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 06:55

    When using Docker for Mac Application, it appears that the containers are stored within the VM located at:

    ~/Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux/Docker.qcow2
    

    UPDATE (Courtesy of mmorin):

    As of Jan 15 2019 it seems there is only this file:

    ~/Library/Containers/com.docker.docker/Data/vms/0/Docker.raw
    

    that contains the Docker Disk and all the images and containers within it.

提交回复
热议问题