liveBook · Manning

Docker image ls

As explained in Bootstrapping Microservices, Second Edition: With Docker, Kubernetes, GitHub Actions, and Terraform

docker image list is a Docker CLI command that displays Docker images available locally and their tags.

Use docker image ls, also shown as docker image list, to inspect locally available Docker images and their tags. It is useful immediately after tagging an image, because the output confirms that the new tag exists. section 3.9.2

Verify a registry tag

After tagging video-streaming for a private registry, run docker image list. The output should contain both tagged entries. Matching image IDs show that Docker added another reference to the existing image rather than creating a new image. section 3.9.2

Use the listing while managing local images:

  • Find the image ID before removing an image with docker rmi. section 3.9.3
  • Check that multiple tags refer to the same image before using --force with docker rmi. section 3.9.3
  • Run the listing again after removal to confirm that the image is gone. section 3.9.3
docker tag <existing-image> <registry-url>/<image-name>:<version>

Pair the image listing with docker tag to verify the registry-qualified image name and version. section 3.9.2

How Bootstrapping Microservices, Second Edition: With Docker, Kubernetes, GitHub Actions, and Terraform covers it

How deep it goes
Explains listing output through tags and shared image IDs, but does not detail command options or output columns.
Examples
Uses the video-streaming image, registry-qualified tags, shared IDs, and post-cleanup listings as operational examples.
What it assumes
Assumes familiarity with Docker images, tags, containers, registries, and basic Docker CLI commands.
What you can do after
Diagnose/debug with it: identify local image IDs, verify tags, and confirm image removal before or after Docker operations.
How it connects
Connects image tags and image IDs with Docker registries, docker push, docker rmi, containers, and docker run.

This explainer was generated by Manning's knowledge graph from the text of Bootstrapping Microservices, Second Edition: With Docker, Kubernetes, GitHub Actions, and Terraform. The section links point to the parts of the book it draws on.