docker cli windows code example
Example 1: check docker version
docker version
Example 2: how to check if i have docker installed
$ docker -v
Docker version 1.7.0, build 0baf609
$ echo $?
0
docker version
$ docker -v
Docker version 1.7.0, build 0baf609
$ echo $?
0