Where are Docker images stored on the host machine?

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

    I can answer this question only for Ubuntu users:

    The root directory of docker can be found when you run the command docker info

    Docker directory will be given in this line: "Docker Root Dir: /var/lib/docker"

    About the docker images, they are stored inside the docker directory: /var/lib/docker/aufs/diff/

    Remember these things are not same in all version of docker. Currently, I am using 1.12.3.

提交回复
热议问题