From 69bd4089644b761823c1bd318452ead4048466cf Mon Sep 17 00:00:00 2001 From: CrazyMax Date: Thu, 22 Feb 2024 10:07:05 +0100 Subject: [PATCH] docs(driver): set buildkitd network mode Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com> --- docs/reference/buildx_create.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/docs/reference/buildx_create.md b/docs/reference/buildx_create.md index 4b92923d..136a3406 100644 --- a/docs/reference/buildx_create.md +++ b/docs/reference/buildx_create.md @@ -90,6 +90,22 @@ configuration file specified by [`--buildkitd-config`](#buildkitd-config). See --buildkitd-flags '--debug --debugaddr 0.0.0.0:6666' ``` +#### BuildKit daemon network mode + +You can specify the network mode for the BuildKit daemon with either the +configuration file specified by [`--buildkitd-config`](#buildkitd-config) using the +`worker.oci.networkMode` option or `--oci-worker-net` flag here. The default +value is `auto` and can be one of `bridge`, `cni`, `host`: + +```text +--buildkitd-flags '--oci-worker-net bridge' +``` + +> **Note** +> +> Network mode "bridge" is supported since BuildKit v0.13 and will become the +> default in next v0.14. + ### Set the builder driver to use (--driver) ```text