check which docker install 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 getting-started
#make sure docker is installed
docker run -dp 80:80 docker/getting-started