mirror of
https://github.com/datahub-project/datahub.git
synced 2025-11-03 04:10:43 +00:00
fix(quickstart): handle potential wrapping of df cmd output in disk space check (#15083)
This commit is contained in:
parent
12cf28186c
commit
695fb4904e
@ -111,7 +111,7 @@ def run_quickstart_preflight_checks(client: docker.DockerClient) -> None:
|
||||
|
||||
result = client.containers.run(
|
||||
"alpine:latest",
|
||||
"sh -c \"df -B1 / | tail -1 | awk '{print $2, $4}'\"", # total, available
|
||||
"sh -c \"df -B1 -P / | awk 'NR==2{print $2, $4}'\"", # total, available
|
||||
remove=True,
|
||||
stdout=True,
|
||||
stderr=True,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user