diff --git a/cmd/build b/cmd/build index 5143e8902..a07d1b53d 100755 --- a/cmd/build +++ b/cmd/build @@ -14,6 +14,16 @@ # See the License for the specific language governing permissions and # limitations under the License. +# Check if Docker is installed +if [[ $(which docker) && $(docker --version) ]]; then + # Docker is installed + echo Using $(docker --version) + else + # Docker is not installed + echo Docker is not installed. Please follow the Get Started guide at https://github.com/google/testrun + exit 1 +fi + # Builds all docker images echo Building docker images