Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

is "docker images" an alias for "docker image ls" command?

when I run docker images or docker image ls I always get the same result, also when I run docker images --help and docker image ls --help I notice that both have the same description: list images.

so it looks like they are the same. however I did not find any note in docker official docs that refer that docker images is an alias for docker image ls.

So is my guess correct (docker images is an alias for docker image ls) or is there a difference between them that I haven’t noticed?

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

EDIT: even that the answers of these two questions: What does ‘docker images ls’ do? and What is the difference between "docker images ls" and "docker image ls"? don’t emphasize that docker images is an alias for docker image ls.

But yes, they are the same (see larsks comment below): The two commands are identical. docker images was the original command before the cli was restructured.

>Solution :

Yes, it was not intended to make it an alias but it become alias later. Both have same structure for passing parameters/arguments and will show same result in all the cases.

If you want to read more about docker images from official document here is the link : https://docs.docker.com/engine/reference/commandline/images/

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading