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