# Image History

> How do you see the layers of an image and the instructions that created them, and how would you use that to make an image smaller?

Canonical: https://www.internhack.in/learn/interview/docker-containers/docker-history-command
Last updated: 2026-11-28

Difficulty: Intermediate

## Question

How do you see the layers of an image and the instructions that created them, and how would you use that to make an image smaller?

*The full answer is for InternHack members. Open the page link above to read it.*

## Concepts covered

docker history, Image layers, Layer size, Image optimisation, BuildKit

Previous: [Docker Commit](https://www.internhack.in/learn/interview/docker-containers/docker-commit-command) · Next: [User Namespaces](https://www.internhack.in/learn/interview/docker-containers/docker-user-namespace-remapping) · [All of Docker & Containers](https://www.internhack.in/learn/interview/docker-containers)

## More Docker & Containers questions

- [HEALTHCHECK](https://www.internhack.in/learn/interview/docker-containers/docker-healthcheck-instruction)
- [Tmpfs Mounts](https://www.internhack.in/learn/interview/docker-containers/docker-tmpfs-mounts)
- [Compose Scaling](https://www.internhack.in/learn/interview/docker-containers/docker-compose-scaling)
- [Docker Context](https://www.internhack.in/learn/interview/docker-containers/docker-context-management)
- [Storage Drivers](https://www.internhack.in/learn/interview/docker-containers/docker-storage-drivers)
- [Kill vs. Stop](https://www.internhack.in/learn/interview/docker-containers/docker-kill-vs-stop)

## Related

- [Learn](https://www.internhack.in/learn)
- [Interview Prep](https://www.internhack.in/learn/interview)
- [Docker & Containers](https://www.internhack.in/learn/interview/docker-containers)
