check-docker · PyPI
pypi.org › project › check-dockerMay 07, 2020 · Installation. With pip. pip3 install check_docker --or-- pip install check_docker. With curl. curl -o /usr/local/bin/check_docker https://raw.githubusercontent.com/timdaman/check_docker/master/check_docker/check_docker.py curl -o /usr/local/bin/check_swarm https://raw.githubusercontent.com/timdaman/check_docker/master/check_docker/check_swarm.py chmod a+rx /usr/local/bin/check_docker /usr/local/bin/check_swarm.
How to Check for Docker Installation | DigitalOcean
www.digitalocean.com › community › questionsJul 10, 2015 · To check if it is installed, you can simply run the command. If you need to do this programmatically, you can check the exit code by running echo $?. If it’s installed, you’ll see: $ docker -v Docker version 1.7.0, build 0baf609 $ echo $? 0 If it’s not installed, you’ll see: $ docker -v The program 'docker' is currently not installed. You can install it by typing: apt-get install docker $ echo $? 127