github.com/blixtra/rkt@v0.8.1-0.20160204105720-ab0d1add1a43/Documentation/subcommands/gc.md (about)

     1  # rkt gc
     2  
     3  rkt has a built-in garbage collection command that is designed to be run periodically from a timer or cron job.
     4  Stopped pods are moved to the garbage and cleaned up during a subsequent garbage collection pass.
     5  Each `gc` pass removes any pods remaining in the garbage past the grace period.
     6  [Read more about the pod lifecycle][gc-docs].
     7  
     8  [gc-docs]: ../devel/pod-lifecycle.md#garbage-collection
     9  
    10  ```
    11  # rkt gc --grace-period=30m0s
    12  Moving pod "21b1cb32-c156-4d26-82ae-eda1ab60f595" to garbage
    13  Moving pod "5dd42e9c-7413-49a9-9113-c2a8327d08ab" to garbage
    14  Moving pod "f07a4070-79a9-4db0-ae65-a090c9c393a3" to garbage
    15  ```
    16  
    17  On the next pass, the pods are removed:
    18  
    19  ```
    20  # rkt gc --grace-period=30m0s
    21  Garbage collecting pod "21b1cb32-c156-4d26-82ae-eda1ab60f595"
    22  Garbage collecting pod "5dd42e9c-7413-49a9-9113-c2a8327d08ab"
    23  Garbage collecting pod "f07a4070-79a9-4db0-ae65-a090c9c393a3"
    24  ```
    25  
    26  ## Options
    27  
    28  | Flag | Default | Options | Description |
    29  | --- | --- | --- | --- |
    30  | `--expire-prepared` |  `24h0m0s` | A time | Duration to wait before expiring prepared pods |
    31  | `--grace-period` |  `30m0s` | A time | Duration to wait before discarding inactive pods from garbage |
    32  
    33  ## Global options
    34  
    35  | Flag | Default | Options | Description |
    36  | --- | --- | --- | --- |
    37  | `--debug` |  `false` | `true` or `false` | Prints out more debug information to `stderr` |
    38  | `--dir` | `/var/lib/rkt` | A directory path | Path to the `rkt` data directory |
    39  | `--insecure-options` |  none | <ul><li>**none**: All security features are enabled</li><li>**http**: Allow HTTP connections. Be warned that this will send any credentials as clear text.</li><li>**image**: Disables verifying image signatures</li><li>**tls**: Accept any certificate from the server and any host name in that certificate</li><li>**ondisk**: Disables verifying the integrity of the on-disk, rendered image before running. This significantly speeds up start time.</li><li>**all**: Disables all security checks</li></ul>  | Comma-separated list of security features to disable |
    40  | `--local-config` |  `/etc/rkt` | A directory path | Path to the local configuration directory |
    41  | `--system-config` |  `/usr/lib/rkt` | A directory path | Path to the system configuration directory |
    42  | `--trust-keys-from-https` |  `false` | `true` or `false` | Automatically trust gpg keys fetched from https |
    43  | `--user-config` |  `` | A directory path | Path to the user configuration directory |