Skip to content

Commit

Permalink
Update Docker Error Message To Reflect Different Issues (#4101)
Browse files Browse the repository at this point in the history
* Update error message

* improve code
  • Loading branch information
MichaelYochpaz committed Feb 29, 2024
1 parent 3d559ff commit 741f3bf
Showing 1 changed file with 5 additions and 3 deletions.
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

0 comments on commit 741f3bf

Please sign in to comment.