Docker Course
Docker
/
Beginner

docker images

Definition

The CLI command that lists all the top-level Docker images currently stored on your local machine, showing their tags, IDs, creation dates, and sizes.

Explain Like I'm New

Opening your digital garage to see exactly which blueprints you currently have saved on your computer.

Real World Example

Typing `docker images` to figure out why your hard drive is full, and realizing you have 20 gigabytes of old Python images downloaded from 3 years ago.

Common Use Cases

  • •Disk space management
  • •Image verification

Interview Questions

basic

  • What command do you type to see a list of images on your computer?

intermediate

  • What is a 'Dangling Image' (usually shown as `<none>` in the list)?

Flash Cards

Question

Which command?

Click to reveal answer
Answer

`docker images` or `docker image ls`.

Question

Dangling image?

Click to reveal answer
Answer

An image that no longer has a name or tag attached to it. This usually happens when you build a new version of an image with the same name. The old image is pushed aside, loses its name, and becomes `<none>`. It wastes disk space and should be pruned.