container ID
The long unique hexadecimal identifier Docker gives every container and image; commands accept a short prefix of it.
In more detail
ID is short for identifier. docker ps shows the first 12 characters. For images, the ID is a SHA-256 hash of the image content, so it changes whenever that content changes. Names and tags are easier for people; IDs are exact.
Related terms
- container name — A human-readable name you give a container with --name, so you can refer to it without copying its ID.
- digest — A SHA-256 hash of an image's manifest that identifies its exact content and can never be moved to other bytes.
- hash — A short fixed-length fingerprint calculated from data, which changes completely if even one byte of the data changes.
- identifier — A name or number that picks out exactly one thing, such as one container, one image or one database row.
Taught in
- Why Containers: Bare Metal, Machines And Processes — Docker Architecture & Production Containers
- Namespaces And Cgroups: Isolation And Limits — Docker Architecture & Production Containers
- Run, Stop, Restart And Remove A Container — Docker Architecture & Production Containers
- Build, Test And Promote The Same Image In CI — Docker Architecture & Production Containers