Skip to content

PKG-1427: Reuse a named buildx builder in cloud docker pipelines - #4265

Merged
eleo007 merged 2 commits into
masterfrom
PKG-1427-buildx-named-builder
Aug 7, 2026
Merged

PKG-1427: Reuse a named buildx builder in cloud docker pipelines#4265
eleo007 merged 2 commits into
masterfrom
PKG-1427-buildx-named-builder

Conversation

@nogueiraanderson

@nogueiraanderson nogueiraanderson commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

Bug

  • 15 call sites run anonymous docker buildx create --use with no docker buildx rm; every build leaks a running buildkit container plus a named _state cache volume, and docker system prune reclaims neither, so cloud.cd worker disks fill to 100% and builds fail at image pull.

Fix

  • Replace each with the named use-or-create idiom already accepted in psmdb_docker_build.groovy: docker buildx use multiarch 2>/dev/null || docker buildx create --name multiarch --use.
  • One shared builder per worker instead of one leak per build; recreated automatically if removed.

Tickets

…uild

- Replace anonymous 'docker buildx create --use' with the existing
  use-or-create multiarch idiom at 14 pipeline sites and in
  tools.groovy dockerBuildAndPush()
- Each anonymous builder is a running buildkit container plus a named
  _state cache volume that docker system prune cannot reclaim; one
  shared named builder per worker bounds this
@eleo007
eleo007 merged commit 7ff4a09 into master Aug 7, 2026
@eleo007
eleo007 deleted the PKG-1427-buildx-named-builder branch August 7, 2026 06:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants