how to check if i have docker installed

Shell
$ docker -v
Docker version 1.7.0, build 0baf609
$ echo $?
0

Source

Also in Shell: