# Suggested BuildKit GC config for Ollama local development.

[worker.oci]
  gc = true
  gckeepstorage = "150GB"

[[worker.oci.gcpolicy]]
  filters = ["type==source.local", "type==source.git.checkout"]
  keepDuration = "48h"
  maxUsedSpace = "5GB"

[[worker.oci.gcpolicy]]
  filters = ["type==exec.cachemount"]
  keepDuration = "168h"
  maxUsedSpace = "20GB"

[[worker.oci.gcpolicy]]
  keepDuration = "720h"
  reservedSpace = "20GB"
  maxUsedSpace = "150GB"
  minFreeSpace = "50GB"
