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?
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 imagesis an alias fordocker image ls.But yes, they are the same (see larsks comment below): The two commands are identical.
docker imageswas 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/