0

What is the physical location of docker image in ubuntu machine? I am using ubuntu 14.04. a. Distributor ID: Ubuntu b. Description: Ubuntu 14.04 LTS c. Release: 14.04 Codename: trusty

rajvineet
  • 189
  • 2
  • 18

1 Answers1

2

Docker images aren't stored as one file like you see using docker images.

Docker image layers are stored in /var/lib/docker, there are sub folders of storage drivers. If you run docker info, you should see Storage Driver: aufs, and I'm assuming that your install defaults to aufs.

So your path is going to be /var/lib/docker/aufs/*layerfolders*

  • I went to /var/lib/docker/aufs/*layerfolders*. Sub-directory of /var/lib/docker/aufs/ has diff, layes and mnt folder in which diff and mnt has container info anf layer has all files of 1 kb each. And my image sixe is almost 2.4 GB. So, still bot clear about the location. – rajvineet Sep 25 '16 at 21:23
  • 2
    Sorry! Don't know how else to help, not exactly sure what you are looking for. You can run a `du -h` on the /var/lib/docker folder to see what is taking up space. You might get more clarity from here: http://stackoverflow.com/questions/19234831/where-are-docker-images-stored-on-the-host-machine – nucleardreamer Sep 27 '16 at 04:36