Skip to content

Commit 4cd5b7b

Browse files
committed
docs: update buildkitd.toml with new field info
Signed-off-by: Justin Chadwell <[email protected]>
1 parent e06c962 commit 4cd5b7b

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

docs/buildkitd.toml.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,13 @@ insecure-entitlements = [ "network.host", "security.insecure" ]
6363
"foo" = "bar"
6464

6565
[[worker.oci.gcpolicy]]
66-
keepBytes = 512000000
67-
keepDuration = 172800
66+
# keepBytes can be an integer number of bytes (e.g. 512000000), a string
67+
# with a unit (e.g. "512MB"), or a string percentage of available disk
68+
# space (e.g. "10%")
69+
keepBytes = "512MB"
70+
# keepDuration can be an integer number of seconds (e.g. 172800), or a
71+
# string duration (e.g. "48h")
72+
keepDuration = "48h"
6873
filters = [ "type==source.local", "type==exec.cachemount", "type==source.git.checkout"]
6974
[[worker.oci.gcpolicy]]
7075
all = true
@@ -87,7 +92,7 @@ insecure-entitlements = [ "network.host", "security.insecure" ]
8792

8893
[[worker.containerd.gcpolicy]]
8994
keepBytes = 512000000
90-
keepDuration = 172800 # in seconds
95+
keepDuration = 172800
9196
filters = [ "type==source.local", "type==exec.cachemount", "type==source.git.checkout"]
9297
[[worker.containerd.gcpolicy]]
9398
all = true

0 commit comments

Comments
 (0)