import logging logging.getLogger("urllib3").setLevel(logging.WARNING) logging.getLogger("docker").setLevel(logging.WARNING)