Docker images have four main layers. They include:
Dockerfile — contains commands or instructions for building layers
Imagedb — keeps images in registries (e.g., Docker Hub)
layerdb — maintains layer history and creates diffs between them
Caches — store objects or files for images so you can cache them to accelerate retrieval