Commit 38d4f2c2 authored by Girish Ramakrishnan's avatar Girish Ramakrishnan

Add note on what df output is

parent 552e2a03
......@@ -27,6 +27,7 @@ def parseSize(size):
def dockerSize():
# use --format '{{json .}}' to dump the string. '{{if eq .Type "Images"}}{{.Size}}{{end}}' still creates newlines
# is used. so it's 1000 (KB) and not 1024 (KiB)
cmd = 'timeout 1800 docker system df --format "{{.Size}}" | head -n1'
size = subprocess.check_output(cmd, shell=True).strip().decode('utf-8')
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment