{"id":469,"date":"2022-10-03T14:30:01","date_gmt":"2022-10-03T14:30:01","guid":{"rendered":"http:\/\/www.scmgalaxy.com\/tutorials\/2016\/02\/23\/location-of-dockers-images-in-all-operating-systems\/"},"modified":"2025-07-12T05:40:14","modified_gmt":"2025-07-12T05:40:14","slug":"location-of-dockers-images-in-all-operating-systems","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/location-of-dockers-images-in-all-operating-systems\/","title":{"rendered":"Docker Tutorials: Location of Docker images in all Operating Systems"},"content":{"rendered":"<div><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-3153 size-full\" src=\"http:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2016\/02\/location-of-dockers-images.png\" alt=\"location-of-dockers-images\" width=\"600\" height=\"400\" srcset=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2016\/02\/location-of-dockers-images.png 600w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2016\/02\/location-of-dockers-images-300x200.png 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/div>\n<div><strong>Location of Dockers images in all Operating Systems<\/strong><\/div>\n<div><\/div>\n<div>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.<\/div>\n<div># docker info<\/div>\n<div><\/div>\n<div><strong>aufs &#8211; Most linux version<\/strong><\/div>\n<div>\/var\/lib\/docker\/aufs\/diff\/&lt;id&gt; has the file contents of the images.<\/div>\n<div>\/var\/lib\/docker\/repositories-aufs is a JSON file containing local image information. This can be viewed with the command docker images.<\/div>\n<div><\/div>\n<div><strong>btrfs<\/strong><\/div>\n<div>TBD<\/div>\n<div><\/div>\n<div><strong>devicemapper (Redhat)<\/strong><\/div>\n<div>\/var\/lib\/docker\/devicemapper\/devicemapper\/data &#8211; stores the images<\/div>\n<div>\/var\/lib\/docker\/devicemapper\/devicemapper\/metadata &#8211; the metadata<\/div>\n<div><\/div>\n<div><strong>vfs<\/strong><\/div>\n<div>TBD<\/div>\n<div><\/div>\n<div><strong>Mac OS X<\/strong><\/div>\n<div>~\/VirtualBox VMs\/boot2docker-vm<\/div>\n<div><\/div>\n<div><strong>Mac OS X using&nbsp;boot2docker&nbsp;<\/strong><\/div>\n<div>\/Users\/rajesh.kumar\/.docker\/machine\/machines\/default<\/div>\n<div>File Name &#8211; disk.vmdk<\/div>\n<div><\/div>\n<div><strong>Windows:<\/strong><\/div>\n<div>%USERPROFILE%\/VirtualBox VMs\/boot2docker-vm<\/div>\n<div><\/div>\n<div>You can manually set the storage driver with the -s or &#8211;storage-driver= option to the Docker daemon.<\/div>\n<div>\/var\/lib\/docker\/{driver-name} will contain the driver specific storage for contents of the images.<\/div>\n<div>\/var\/lib\/docker\/graph\/&lt;id&gt; now only contains metadata about the image, in the json and layersize files.<\/div>\n<div><\/div>\n<div><strong>Reference<\/strong><\/div>\n<div><a href=\"http:\/\/stackoverflow.com\/questions\/19234831\/where-are-docker-images-stored-on-the-host-machine\" target=\"_blank\" rel=\"noopener\">http:\/\/stackoverflow.com\/questions\/19234831\/where-are-docker-images-stored-on-the-host-machine<\/a><\/div>\n\n<div class=\"epyt-gallery\" data-currpage=\"1\" id=\"epyt_gallery_24248\"><figure class=\"wp-block-embed wp-block-embed-youtube is-type-video is-provider-youtube epyt-figure\"><div class=\"wp-block-embed__wrapper\"><iframe loading=\"lazy\"  id=\"_ytid_85029\"  width=\"760\" height=\"427\"  data-origwidth=\"760\" data-origheight=\"427\" src=\"https:\/\/www.youtube.com\/embed\/?enablejsapi=1&#038;autoplay=0&#038;cc_load_policy=0&#038;cc_lang_pref=&#038;iv_load_policy=1&#038;loop=0&#038;rel=1&#038;fs=1&#038;playsinline=0&#038;autohide=2&#038;theme=dark&#038;color=red&#038;controls=1&#038;disablekb=0&#038;\" class=\"__youtube_prefs__  no-lazyload\" title=\"YouTube player\"  data-epytgalleryid=\"epyt_gallery_24248\"  allow=\"fullscreen; accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen data-no-lazy=\"1\" data-skipgform_ajax_framebjll=\"\"><\/iframe><\/div><\/figure><div class=\"epyt-gallery-list\"><div>Sorry, there was a YouTube error.<\/div><\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>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 &#8211; Most linux version \/var\/lib\/docker\/aufs\/diff\/&lt;id&gt; has the file contents of the images. \/var\/lib\/docker\/repositories-aufs is a&#8230;<\/p>\n","protected":false},"author":1,"featured_media":3153,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":"","_joinchat":[],"footnotes":""},"categories":[4862],"tags":[1317,1318,1319,1314,1316,460,330,1315,1323,1324,1325,1330,1328,1326,1327,1329,1322,947,1320,1321,182],"class_list":["post-469","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-docker","tag-aufs","tag-btrfs","tag-devicemapper","tag-docker-images","tag-dockers-images-location","tag-linux","tag-location","tag-location-of-docker-images","tag-location-of-docker-images-in-aufs","tag-location-of-docker-images-in-btrfs","tag-location-of-docker-images-in-devicemapper","tag-location-of-docker-images-in-linux","tag-location-of-docker-images-in-mac-os-x","tag-location-of-docker-images-in-redhat","tag-location-of-docker-images-in-vfs","tag-location-of-docker-images-in-windows","tag-mac-os-x","tag-operating-systems","tag-redhat","tag-vfs","tag-windows"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/469","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/comments?post=469"}],"version-history":[{"count":4,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/469\/revisions"}],"predecessor-version":[{"id":31454,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/469\/revisions\/31454"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media\/3153"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=469"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=469"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=469"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}