anchor.diff:  ----
   ====
   
  -=== Detection of containers for deletion
  +[[detecting-containers-for-deletion]]
  +=== Detecting Containers for Deletion
   
  -At the moment only docker and rkt are supported. Rkt has its own GC. The following is only docker related.
  +ifdef::openshift-origin[]
  +[NOTE]
  +====
  +Currently, Docker and rkt are supported. The following only applies to Docker;
  +rkt has its own garbage collection.
  +====
  +endif::[]
   
   Each spin of the garbage collector loop goes through the following steps:
   
  -1. Retrieve a list of available containers
  -2. Filter out all containers that are running or are not alive longer
  -   than `*minimum-container-ttl-duration*` parameter
  -3. Determine pod membership of each remaining container
  -4. Remove all unidentified containers (with no pod membership)
  -5. For each pod that contains more containers than
  -   `*maximum-dead-containers-per-container*`, sort the containers by creation time
  -6. Start removing containers from the oldest first
  -   until `*maximum-dead-containers-per-container*` is met
  -7. If there are still more containers in the list than `*maximum-dead-containers*`,
  -   the collector starts removing containers from each pod so a number of containers
  -   in each one is not greater than average number of containers per pod,
  -   i.e. (all remaining containers)/(number of pods).
  +1. Retrieve a list of available containers.
  +2. Filter out all containers that are running or are not alive longer than
  +the `*minimum-container-ttl-duration*` parameter.
  +3. Determine pod membership of each remaining container.
  +4. Remove all unidentified containers (with no pod membership).
  +5. For each pod that contains more containers than the
  +`*maximum-dead-containers-per-container*` parameter, sort the containers by
  +creation time.
  +6. Start removing containers from the oldest first until the
  +`*maximum-dead-containers-per-container*` parameter is met.
  +7. If there are still more containers in the list than the
  +`*maximum-dead-containers*` parameter, the collector starts removing containers
  +from each pod so the number of containers in each one is not greater than the
  +average number of containers per pod, or
  +`<all_remaining_containers>/<number_of_pods>`.
   8. If this is still not enough, sort all containers in the list and start
  -   removing containers from the oldest first
  -   until `*maximum-dead-containers*` criterion is met.
  +removing containers from the oldest first until the `*maximum-dead-containers*`
  +criterion is met.
   
   [[image-garbage-collection]]
   
  
positive.code: ----
  ====
  
  === Detection of Images for Deletion
  
  Two lists of images are retrieved in each garbage collector run:
  
  
negative.code: 
  == Container Garbage Collection
  
  The policy for container garbage collection is based on three node settings:
  
  [options="header",cols="1,3"]
  |===
  