Docker Images

Pull, list, tag, inspect, and remove images confidently.

  • docker images
  • docker pull
  • docker rmi
  • docker tag
  • image prune

Docker Images

Pull, list, tag, inspect, and remove images confidently.

Commands

CommandWhat it does
docker pull nginx:1.27Download a specific image tag
docker imagesList local images with sizes
docker tag app:dev registry/app:v1Retag for a registry
docker inspect nginx:1.27Full JSON metadata of an image
docker rmi <image>Remove an image
docker image prune -aRemove all unused images

Example

docker pull nginx:1.27
docker images | head
docker rmi $(docker images -q -f dangling=true)

FAQ

latest vs pinned tags?

Pin versions (nginx:1.27) in production; latest moves silently and breaks reproducible deploys.

What are dangling images?

Untagged layers left after rebuilds; prune them regularly to reclaim disk.

Câu hỏi thường gặp

latest vs pinned tags?
Pin versions (nginx:1.27) in production; latest moves silently and breaks reproducible deploys.
What are dangling images?
Untagged layers left after rebuilds; prune them regularly to reclaim disk.

Docker