Skip to content
This repository has been archived by the owner on Oct 13, 2023. It is now read-only.

[18.09] Backport Buildkit fixes for 18.09 #59

Merged
merged 7 commits into from
Sep 22, 2018

Commits on Sep 22, 2018

  1. vendor: add bbolt v1.3.1-etcd.8

    Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
    tonistiigi committed Sep 22, 2018
    Configuration menu
    Copy the full SHA
    46a703b View commit details
    Browse the repository at this point in the history
  2. vendor: update bolt to bbolt

    Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
    tonistiigi committed Sep 22, 2018
    Configuration menu
    Copy the full SHA
    b501aa8 View commit details
    Browse the repository at this point in the history
  3. daemon/images: removed "found leaked image layer" warning, because it…

    … 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>
    Tibor Vass authored and tonistiigi committed Sep 22, 2018
    Configuration menu
    Copy the full SHA
    bb2adc4 View commit details
    Browse the repository at this point in the history
  4. update vendor

    Signed-off-by: Anda Xu <anda.xu@docker.com>
    (cherry picked from commit 308701f)
    (cherry picked from commit b48afc2)
    Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
    AntaresS authored and tonistiigi committed Sep 22, 2018
    Configuration menu
    Copy the full SHA
    b73fd4d View commit details
    Browse the repository at this point in the history
  5. add support of registry-mirrors and insecure-registries to buildkit

    Signed-off-by: Anda Xu <anda.xu@docker.com>
    (cherry picked from commit 171d51c)
    (cherry picked from commit a72752b)
    Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
    AntaresS authored and tonistiigi committed Sep 22, 2018
    Configuration menu
    Copy the full SHA
    2926a45 View commit details
    Browse the repository at this point in the history
  6. 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>
    (cherry picked from commit 4a776d0)
    Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
    Tibor Vass authored and tonistiigi committed Sep 22, 2018
    Configuration menu
    Copy the full SHA
    73e2f72 View commit details
    Browse the repository at this point in the history
  7. builder: vendor buildkit to 39404586a50d1b9d0fb1c578cf0f4de7bdb7afe5

    Signed-off-by: Tibor Vass <tibor@docker.com>
    (cherry picked from commit d0f00bc)
    Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
    Tibor Vass authored and tonistiigi committed Sep 22, 2018
    Configuration menu
    Copy the full SHA
    3d67dd0 View commit details
    Browse the repository at this point in the history