Skip to content

Commit 06ae774

Browse files
author
Jiali Xing
committed
Add logging for docker info command failure
1 parent d16da72 commit 06ae774

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/sagemaker/local/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,8 +179,8 @@ def get_docker_host():
179179
logger.warning(
180180
"RootlessDocker not detected, falling back to remote host IP or localhost."
181181
)
182-
except subprocess.SubprocessError:
183-
pass
182+
except subprocess.SubprocessError as e:
183+
logger.warning("Failed to run 'docker info' command when checking rootlessDocker: %s.", e)
184184

185185
# Fallback to existing logic for remote Docker hosts
186186
cmd = "docker context inspect".split()

0 commit comments

Comments
 (0)