Location of Dockers images in all Operating Systems

Location of Dockers images in all Operating Systems
 
The location of the images vary depending on the driver Docker is using for storage. Actually, Docker images are stored in two files as shown by following command.
# docker info
 
aufs - Most linux version
/var/lib/docker/aufs/diff/<id> has the file contents of the images.
/var/lib/docker/repositories-aufs is a JSON file containing local image information. This can be viewed with the command docker images.
 
btrfs
TBD
 
devicemapper (Redhat)
/var/lib/docker/devicemapper/devicemapper/data - stores the images
/var/lib/docker/devicemapper/devicemapper/metadata - the metadata
 
vfs
TBD
 
Mac OS X
~/VirtualBox VMs/boot2docker-vm
 
Mac OS X using boot2docker 
/Users/rajesh.kumar/.docker/machine/machines/default
File Name - disk.vmdk
 
Windows:
%USERPROFILE%/VirtualBox VMs/boot2docker-vm
 
You can manually set the storage driver with the -s or --storage-driver= option to the Docker daemon.
/var/lib/docker/{driver-name} will contain the driver specific storage for contents of the images.
/var/lib/docker/graph/<id> now only contains metadata about the image, in the json and layersize files.
 
Reference
http://stackoverflow.com/questions/19234831/where-are-docker-images-stored-on-the-host-machine
Rate this item
(0 votes)
Rajesh Kumar

.

Total, Over 12 years of extensive experience in the Software Configuration Management domain having depth knowledge of DevOps, Continuous Integration and Delivery, Configuration Management, Build and Installer, Release Management and Application Management.

What corporate management say about us?

Rajesh is very knowledgeable instructor he has a good exposure on real time issue and case studies he is experienced in large environment issue and challenges. I really liked how Rajesh used a lot of examples so that concepts were more easily understood, I like the examples that Rajesh give to help us remember things…they are usually real scenario, real life problems that we encounter frequently. <br /> He is well organised in terms of study materiel that you can refer anytime after you complete your course. His blogs are crisp and has to the point key content that he discussed during session to remember if you refer them remotely.

Gaurav Vishnoi
I am having 11+ years of experience in java, due to increasing complexity of system and environment I opted for this tanning and find it very useful., Noida
Sep 02, 2016

Authors

Login