How to know list of images available on your device


In order to know the list of available images on your device you can make use of the command docker image ls or docker image list

Example:
 % docker image ls

REPOSITORY               TAG       IMAGE ID       CREATED        SIZE
tomcat                   latest    8d13ce352985   13 days ago    669MB
docker/getting-started   latest    adfdb308d623   2 weeks ago    27.4MB
ubuntu                   latest    d5ca7a445605   4 months ago   65.6MB
hello-world              latest    18e5af790473   5 months ago   9.14kB

In order to see the digests as well you can make use of the command docker image ls --digests

% docker image --digests

REPOSITORY               TAG       DIGEST                                                                    IMAGE ID       CREATED        SIZE
tomcat                   latest    sha256:4ceb3b972a1a6dfd01106a7743c51953d9a06acef271ce6168490e5d0087206a   8d13ce352985   13 days ago    669MB
docker/getting-started   latest    sha256:aa945bdff163395d3293834697fa91fd4c725f47093ec499f27bc032dc1bdd16   adfdb308d623   2 weeks ago    27.4MB
ubuntu                   latest    sha256:626ffe58f6e7566e00254b638eb7e0f3b11d4da9675088f4781a50ae288f3322   d5ca7a445605   4 months ago   65.6MB
hello-world              latest    sha256:97a379f4f88575512824f3b352bc03cd75e239179eea0fecc38e597b2209f49a   18e5af790473   5 months ago   9.14kB

On the other end if you only want to see the Image IDs,

% docker image ls -q 

8d13ce352985
adfdb308d623
d5ca7a445605
18e5af790473
Docker - Unable to find image locally
Docker - Unable to find image locally
Advertisements
Try Out Code2care Dev Tools:

Advertisements

Advertisements
Code2care is an initiative to publish and share varied knowledge in programming and technical areas gathered during day-to-day learnings and development activities.

Students and software developers can leverage this portal to find solutions to their various queries without re-inventing the wheel by referring to our easy to understand posts. Technical posts might include learnings, tutorials, trouble-shooting steps, video tutorials, code snippets, how-to, blogs, articles, etc.

🎉 We are celebrating the 10th years of Code2care! Thank you for all your support!

We strongly support Gender Equality & Diversity.