go.uber.org/yarpc@v1.72.1/etc/bin/check-docker.sh (about)

     1  #!/bin/bash
     2  
     3  docker version >/dev/null
     4  if [ $? -ne 0 ]; then
     5    echo "-----------------------------------------------------------------" >&2
     6    echo "Most of our make commands run inside Docker but you do not appear to have" >&2
     7    echo "the Docker daemon running. Please start the Docker daemon and try again." >&2
     8    echo "See https://docs.docker.com/engine/installation/ to get started with Docker." >&2
     9    echo "Alternatively, set SUPPRESS_DOCKER=1 to run the command locally against your system." >&2
    10    echo "Docker is not running" >&2
    11    exit 1
    12  fi