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
| Command | What it does |
|---|---|
docker pull nginx:1.27 | Download a specific image tag |
docker images | List local images with sizes |
docker tag app:dev registry/app:v1 | Retag for a registry |
docker inspect nginx:1.27 | Full JSON metadata of an image |
docker rmi <image> | Remove an image |
docker image prune -a | Remove 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.
คำถามที่พบบ่อย
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
Docker Install and Setup
Verify the Docker engine, configure context, and check versions.
Docker Containers
Run, list, stop, and clean up containers in daily work.
Docker Run Options
The flags that matter: detach, ports, env, volumes, limits.
Docker Exec and Logs
Get a shell inside containers and read their logs effectively.