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