Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion check_docker/check_docker.py
Original file line number Diff line number Diff line change
Expand Up @@ -935,7 +935,12 @@ def perform_checks(raw_args):

# Here is where all the work happens
#############################################################################################
containers = get_containers(args.containers, args.present)
try:
containers = get_containers(args.containers, args.present)
except URLError as e:
critical(f'Failed to connect to daemon: {e.reason}.')
print_results()
exit(rc)

if len(containers) == 0 and not args.present:
unknown("No containers names found matching criteria")
Expand Down