Thursday, May 9, 2024
 Popular · Latest · Hot · Upcoming
3
rated 0 times [  3] [ 0]  / answers: 1 / hits: 1539  / 3 Years ago, tue, july 27, 2021, 5:20:27

Is there more than one way to show "possible" docker container images, that is docker containers which have been downloaded through the pull command as:


docker ps -a

lists jetty twice:


CONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS                      PORTS               NAMES
490e3d669259 jetty "/docker-entrypoint.…" 22 hours ago Exited (143) 21 hours ago quirky_antonelli
a44230a617e1 jetty "/docker-entrypoint.…" 22 hours ago Exited (143) 21 hours ago goofy_hamilton

and:


docker container ls

no dockers currently running:


CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS               NAMES

In fact I used pull to download both the above Jetty and a hello world. How do I list everthing which is now available?


More From » docker

 Answers
6

What you have pulled are images not containers. You can also use images sub-command. It's like an alias to docker image ls.


$ docker images
debian latest ae8514941ea4 2 weeks ago 114MB
python alpine f8a57363ff96 2 weeks ago 80.3MB

To get a list of incremental images use -a flag:


$ docker images -a

[#2895] Thursday, July 29, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
oredoise

Total Points: 66
Total Questions: 116
Total Answers: 111

Location: Lebanon
Member since Sun, Aug 2, 2020
4 Years ago
;