#docker version [OPTIONS] $docker version
Here is what the above code is Doing:
1. We’re creating a new Docker client object.
2. We’re using the client object to get the version of the Docker server.
3. We’re printing the version of the Docker server.