Skip to content

Latest commit

 

History

History
27 lines (22 loc) · 893 Bytes

cni-networking.md

File metadata and controls

27 lines (22 loc) · 893 Bytes
title description keywords
CNI networking
Enhance your builder with CNI networking
build, buildx, buildkit, cni, network

It can be useful to use a bridge network for your builder if for example you encounter a network port contention during multiple builds. If you're using the BuildKit image, CNI is not yet available in it, but you can create a custom BuildKit image with CNI support.

Now build this image:

$ docker buildx build --tag buildkit-cni:local --load .

Then create a docker-container builder that will use this image:

$ docker buildx create --use \
  --name mybuilder \
  --driver docker-container \
  --driver-opt "image=buildkit-cni:local" \
  --buildkitd-flags "--oci-worker-net=cni"