check docker daemon windows code example
Example 1: Start the Docker daemon
sudo systemctl start docker
sudo service docker start
Example 2: how to check if i have docker installed
$ docker -v
Docker version 1.7.0, build 0baf609
$ echo $?
0
sudo systemctl start docker
sudo service docker start
$ docker -v
Docker version 1.7.0, build 0baf609
$ echo $?
0