Skip to content

Add a command line parameter for pkg build/push to inject custom Root CA into linuxkit-builder #4143

@rucoder

Description

@rucoder

When running linuxkit behind a transparent caching proxy that uses DNS to reroute requsts to *.docker.io to NGINX proxy we need a way to inject NGINX'es certificate into linuxkit-builder container to trust it. both docker builder create and buildx builder commands allow to do so so it should be fairly simple to implement.

  1. The buldkit documentation describes certificate injection https://docs.docker.com/build/buildkit/configure/#setting-registry-certificates
# /etc/buildkitd.toml
debug = true
[registry."myregistry.com"]
  ca=["/etc/certs/myregistry.pem"]
  [[registry."myregistry.com".keypair]]
    key="/etc/certs/myregistry_key.pem"
    cert="/etc/certs/myregistry_cert.pem"
  1. Linuxkit already has an option to provide a custom config for builder
  2. we just missing an option to mount certificates to buildkit container.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions