tart clone: make pruning limit configurable (#1126)

* tart clone: make pruning limit configurable

* Fixed compilation
This commit is contained in:
Fedor Korotkov
2025-09-14 12:38:57 -04:00
committed by GitHub
parent 96c89ad76e
commit 02bf5651e7
2 changed files with 6 additions and 1 deletions
+2
View File
@@ -166,6 +166,8 @@ Tart does have an analogue of Anka Controller for managing VMs across a cluster
In case there's not enough space to fit the newly pulled or cloned VM image, Tart will remove the least recently accessed VMs from OCI cache and `.ipsw` files from IPSW cache until enough free space is available.
The `tart clone` command limits this automatic pruning to 100 GB by default to avoid removing too many cached items. You can change this limit with the `--prune-limit` option (in gigabytes).
To disable this functionality, set the `TART_NO_AUTO_PRUNE` environment variable either globally:
```shell