Wednesday 2 November 2022

Exploring Docker commands: docker images

 


docker images


To see which images are present locally, use docker images:

docker images --help

Usage: docker images [OPTIONS] [REPOSITORY[:TAG]]

List images

Options:
  -a, --all             Show all images (default hides intermediate images)
      --digests         Show digests
  -f, --filter filter   Filter output based on conditions provided
      --format string   Pretty-print images using a Go template
      --no-trunc        Don't truncate output
  -q, --quiet           Only show numeric IDs


Example:

docker images
REPOSITORY           TAG                  IMAGE ID            CREATED             SIZE
my_app               latest               477db2641216        12 minutes ago      193MB
<none>               <none>               7f82c84cc05a        12 minutes ago      193MB

No comments: