Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Docker Error Message To Reflect Different Issues #4101

Merged
merged 2 commits into from
Feb 29, 2024
Merged
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
8 changes: 5 additions & 3 deletions demisto_sdk/commands/common/docker_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,11 @@ def init_global_docker_client(timeout: int = 60, log_prompt: str = ""):
try:
DOCKER_CLIENT = docker.from_env(timeout=timeout, use_ssh_client=ssh_client) # type: ignore
except docker.errors.DockerException:
msg = "Failed to init docker client. Please check that your docker daemon is running."
logger.error(f"{log_prompt} - {msg}")
raise DockerException(msg)
logger.warning(
f"{log_prompt} - Failed to init docker client. "
"This might indicate that your docker daemon is not running."
)
raise
docker_user = os.getenv("DOCKERHUB_USER")
docker_pass = os.getenv("DOCKERHUB_PASSWORD")
if docker_user and docker_pass:
Expand Down
Loading