To view the version of docker engine installed

Hi All,
Even with “docker --version” also we get the answer to the version of docker engine installed
Docker version 20.10.8, build 3967b7d
but in practice question, they have mentioned as answer as

docker version

So why not docker --version as the answer

@joseph.john , can you please let us know which practise test is having this issue?

Me dont remember now,

docker --version

Example output:

Docker version 24.0.5, build ced0996

This just gives you the version and build ID of the Docker CLI.

Limitation: Doesn’t tell you the Docker Engine (server/daemon) version — which is what actually runs containers.