1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/builder
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-next builder: use buildkit's GC for build cache 2018-09-21 22:06:00 +00:00
dockerfile fix typos 2018-09-01 21:26:38 +08:00
dockerignore Add canonical import comment 2018-02-05 16:51:57 -05:00
fscache boltdb/bolt --> go.etcd.io/bbolt 2018-09-13 12:38:39 -07:00
remotecontext LCOW: Capture stderr on external process. Log actual error rather than throwaway 2018-08-16 19:20:14 -07:00
builder.go Various code-cleanup 2018-05-23 17:50:54 +02:00