check whether docker is installed code example Example: how to check if i have docker installed $ docker -v Docker version 1.7.0, build 0baf609 $ echo $? 0