fix(cli): use '{{json .}}' format instead of 'json'

Related to https://github.com/langchain-ai/langgraph/issues/1319
This commit is contained in:
Tat Dat Duong
2025-02-18 14:58:24 +01:00
parent 1283539500
commit 3a67f3a3eb
+1 -1
View File
@@ -49,7 +49,7 @@ def check_capabilities(runner) -> DockerCapabilities:
raise click.UsageError("Docker not installed") from None
try:
stdout, _ = runner.run(subp_exec("docker", "info", "-f", "json", collect=True))
stdout, _ = runner.run(subp_exec("docker", "info", "-f", "{{json .}}", collect=True))
info = json.loads(stdout)
except (click.exceptions.Exit, json.JSONDecodeError):
raise click.UsageError("Docker not installed or not running") from None