Where does docker store images on the host machine?

763    Asked by GillianHamer in Data Science , Asked on Jul 12, 2021

I am unable to find the containers under the directory:

/var/lib/docker/containers

Can you please tell me the directories and files under /var/lib/docker and also where does docker store images on the host machine?

Answered by Deepali singh

 This is a solution for Ubuntu users with docker version 1.12.3.


Use the below command, to find the root directory of docker.

    $ docker info

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

The docker images are stored inside the docker directory: /var/lib/docker/ images are stored there.



Your Answer

Interviews

Parent Categories