github.com/stackdocker/rkt@v0.10.1-0.20151109095037-1aa827478248/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. Stopped pods are moved to the garbage and cleaned up during a subsequent garbage collection pass. Each `gc` pass removes any pods remaining in the garbage past the grace period. [Read more about the pod lifecycle][gc-docs].
     4  
     5  [gc-docs]: ../devel/pod-lifecycle.md#garbage-collection
     6  
     7  ```
     8  # rkt gc --grace-period=30m0s
     9  Moving pod "21b1cb32-c156-4d26-82ae-eda1ab60f595" to garbage
    10  Moving pod "5dd42e9c-7413-49a9-9113-c2a8327d08ab" to garbage
    11  Moving pod "f07a4070-79a9-4db0-ae65-a090c9c393a3" to garbage
    12  ```
    13  
    14  On the next pass, the pods are removed:
    15  
    16  ```
    17  # rkt gc --grace-period=30m0s
    18  Garbage collecting pod "21b1cb32-c156-4d26-82ae-eda1ab60f595"
    19  Garbage collecting pod "5dd42e9c-7413-49a9-9113-c2a8327d08ab"
    20  Garbage collecting pod "f07a4070-79a9-4db0-ae65-a090c9c393a3"
    21  ```