docker / docker/buildx

Feature request: Allow storing builder configurations in a file

Open
#2,799 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

kind/enhancement
Dominant language
Go
Stars
4.5k
Forks
682
Avg merge
2d 14h
Merged PRs (30d)
29

Description

Description

I would like to use the multiplatform building in my CI but ideally i would like to predefine a config file for consistency rather that having to run docker buildx create and appending for platform types. It would be good if i could do something like docker buildx create --from builders.yaml and then jump straight into building.

i.e.

# builders.yaml
kube:
  arm64:
    driver: kubernetes
    driver-opt: 
      namepace: buildkit
      nodeselector: "kubernetes.io/arch=arm64"
    platform:
      - linux/arm64
  amd64:
    driver: kubernetes
    driver-opt: 
      namepace: buildkit
      nodeselector: "kubernetes.io/arch=amd64"
    platform:
      - linux/amd64

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names the docker buildx create command and proposes a builders.yaml input, but no repository files or tests. Start by tracing the create command and existing builder configuration handling. Done should include a defined configuration format, support for creating the described builders from that file, and tests for loading and applying it.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, go, kubernetes
Domain
cli, devops
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.