moby--moby/daemon/config
Tibor Vass 4a776d0ca7 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>
2018-09-21 22:06:00 +00:00
..
builder.go builder: use buildkit's GC for build cache 2018-09-21 22:06:00 +00:00
config.go builder: use buildkit's GC for build cache 2018-09-21 22:06:00 +00:00
config_common_unix.go Fixes for resolv.conf 2018-07-26 11:17:56 -07:00
config_common_unix_test.go Add canonical import comment 2018-02-05 16:51:57 -05:00
config_test.go Update tests to use gotest.tools 👼 2018-06-13 09:04:30 +02:00
config_unix.go Fixes for resolv.conf 2018-07-26 11:17:56 -07:00
config_unix_test.go Update tests to use gotest.tools 👼 2018-06-13 09:04:30 +02:00
config_windows.go Add canonical import comment 2018-02-05 16:51:57 -05:00
config_windows_test.go Update tests to use gotest.tools 👼 2018-06-13 09:04:30 +02:00
opts.go Add canonical import comment 2018-02-05 16:51:57 -05:00