

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


Docker Advance Tutorial | Part 1 out 16 | — By DevOpsSchool

Docker Advance Tutorial | Part 2 out 16 | — By DevOpsSchool

Docker Advance Tutorial | Part 3 out 16 | — By DevOpsSchool

Docker Advance Tutorial | Part 4 out 16 | — By DevOpsSchool

Docker Advance Tutorial | Part 5 out 16 | — By DevOpsSchool

Docker Advance Tutorial | Part 6 out 16 | — By DevOpsSchool

Docker Advance Tutorial | Part 7 out 16 | — By DevOpsSchool

Docker Advance Tutorial | Part 8 out 16 | — By DevOpsSchool

Docker Advance Tutorial | Part 9 out 16 | — By DevOpsSchool

Docker Advance Tutorial | Part 10 out 16 | — By DevOpsSchool

Docker Advance Tutorial | Part 11 out 16 | — By DevOpsSchool

Docker Advance Tutorial | Part 13 out 16 | — By DevOpsSchool

Docker Advance Tutorial | Part 14 out 16 | — By DevOpsSchool

Docker Advance Tutorial | Part 15 out 16 | — By DevOpsSchool

Docker Advance Tutorial | Part 16 out 16 | — By DevOpsSchool

Latest posts by Rajesh Kumar (see all)
- Difference Between snowflake vs databricks - September 20, 2023
- Types of API Testing - September 20, 2023
- List of Popular Secret Manager - September 20, 2023