mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-05-18 00:47:48 +08:00
docs(driver): set buildkitd network mode
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
This commit is contained in:
parent
d8e9c7f5b5
commit
69bd408964
@ -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.
|
||||
|
||||
### <a name="driver"></a> Set the builder driver to use (--driver)
|
||||
|
||||
```text
|
||||
|
Loading…
x
Reference in New Issue
Block a user