docker:tldr:ae86a
docker: List local Docker images.
$ docker image ls
try on your machine
The command "docker image ls" is used to list all the Docker images available on your local machine.
When you execute this command, Docker will query the local Docker daemon and retrieve information about the existing images. This command will display a table with details about each image, including the repository, tag, image ID, created date, and size.
Here's an example of how the output may look:
REPOSITORY TAG IMAGE ID CREATED SIZE
ubuntu latest 113a43faa138 3 weeks ago 72.7MB
nginx latest e4ff1e3490e4 2 months ago 133MB
In this example, the columns represent:
- REPOSITORY: The name or URL of the repository for the image.
- TAG: A specific version or tag associated with the image.
- IMAGE ID: A unique identifier for the image.
- CREATED: The date when the image was created.
- SIZE: The disk space occupied by the image on your local machine.
This command is helpful to quickly view the images available locally and their associated details.
This explanation was created by an AI. In most cases those are correct. But please always be careful and
never run a command you are not sure if it is safe.