This repository was archived by the owner on Oct 13, 2023. It is now read-only.
[18.09] Backport Buildkit fixes for 18.09#59
Merged
andrewhsu merged 7 commits intodocker-archive:18.09from Sep 22, 2018
Merged
Conversation
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
… is expected now with buildkit Signed-off-by: Tibor Vass <tibor@docker.com> (cherry picked from commit 5aa222d) Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
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>
(cherry picked from commit 4a776d0)
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
Signed-off-by: Tibor Vass <tibor@docker.com> (cherry picked from commit d0f00bc) Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
daemon/images: removed "found leaked image layer" warning, because it… moby/moby#37854 daemon/images: removed "found leaked image layer" warning, because it
add support for "registry-mirrors" and "insecure-registries" to buildkit moby/moby#37852 add support for "registry-mirrors" and "insecure-registries" to buildkit
builder: use buildkit's GC for build cache moby/moby#37846 builder: use buildkit's GC for build cache
builder: vendor buildkit to 39404586a50d1b9d0fb1c578cf0f4de7bdb7afe5 moby/moby#37899 builder: vendor buildkit to 3940458
partially adds Revendor libnetwork @ 36d3bed0e9 moby/moby#37843 with a boltdb repo switch. The duplicate is removed in a subsequent PR that updates containerd+swarmkit+libnetwork.
@andrewhsu @tiborvass @AntaresS