Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

builder: use buildkit's GC for build cache #37846

Merged
merged 1 commit into from Sep 22, 2018
Merged

Commits on Sep 21, 2018

  1. builder: use buildkit's GC for build cache

    This allows users to configure the buildkit GC.
    
    The following enables the default GC:
    ```
    {
      "builder": {
        "gc": {
          "enabled": true
        }
      }
    }
    ```
    
    The default GC policy has a simple config:
    ```
    {
      "builder": {
        "gc": {
          "enabled": true,
          "defaultKeepStorage": "30GB"
        }
      }
    }
    ```
    
    A custom GC policy can be used instead by specifying a list of cache prune rules:
    ```
    {
      "builder": {
        "gc": {
          "enabled": true,
          "policy": [
            {"keepStorage": "512MB", "filter": ["unused-for=1400h"]]},
            {"keepStorage": "30GB", "all": true}
          ]
        }
      }
    }
    ```
    
    Signed-off-by: Tibor Vass <tibor@docker.com>
    Tibor Vass committed Sep 21, 2018
    Copy the full SHA
    4a776d0 View commit details
    Browse the repository at this point in the history