What is `/var/lib/docker` and what is inside?
IntermediateConceptImages, Layers & Storage Drivers
Answer
The daemon's data root: overlay2/ (layers), image/ (metadata), containers/ (per-container config and JSON logs), volumes/, network/, buildkit/ and swarm/. Move it with "data-root" in daemon.json when /var is small. Never edit it by hand while the daemon runs.
More on Images, Layers & Storage Drivers
What is a Docker image made of?BeginnerWhat is a layer and when is one created?BeginnerWhat is a union filesystem / OverlayFS?IntermediateWhat is copy-on-write (CoW) in containers?IntermediateWhy does deleting a file in a later `RUN` not shrink the image?IntermediateWhat storage drivers does Docker support and which is default?Intermediate