docker install check command code example
Example 1: how to check if i have docker installed
$ docker -v
Docker version 1.7.0, build 0baf609
$ echo $?
0
Example 2: docker install
$ curl -fsSL https://get.docker.com -o get-docker.sh
$ sudo sh get-docker.sh