Skip to content

Some records seem to never become reclaimable #4525

Answered by koeberlue
koeberlue asked this question in Q&A
Discussion options

You must be logged in to vote

After some debugging we found the root cause of the issue. Due to a bug with Gitlab's docker registry we disabled sbom and provenance for the attestation:

target "nginx" {
  context    = "."
  dockerfile = "./nginx.dockerfile"
  tags       = ["<redacted>"]
  attest = [ "type=sbom,enabled=false", "type=provenance,enabled=false" ]
}

Note the attest= line. This would cause buildkit to never mark the built layers as Recoverable.

Removing this line resolves the issue for us. I am just wondering if this is a bug in buildkit or if it expected behavior.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by koeberlue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant