Skip to content

Commit

Permalink
check docker is running before all
Browse files Browse the repository at this point in the history
  • Loading branch information
audibleblink committed Aug 21, 2020
1 parent 43ec9af commit 4077b17
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion doxycannon.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import argparse
import glob
import os
import sys
import re
from threading import Thread
from queue import Queue
Expand Down Expand Up @@ -52,7 +53,11 @@
backend doxycannon
"""

doxy = docker.from_env()
try:
doxy = docker.from_env()
except docker.errors.DockerException as err:
print("Unable to contact local Docker daemon. Is it running?")
sys.exit(1)


def build(image_name, path='.'):
Expand Down

0 comments on commit 4077b17

Please sign in to comment.