mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-07-21 18:58:03 +08:00
docs(driver): set buildkitd network mode
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
This commit is contained in:
@@ -90,6 +90,22 @@ configuration file specified by [`--buildkitd-config`](#buildkitd-config). See
|
|||||||
--buildkitd-flags '--debug --debugaddr 0.0.0.0:6666'
|
--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)
|
### <a name="driver"></a> Set the builder driver to use (--driver)
|
||||||
|
|
||||||
```text
|
```text
|
||||||
|
Reference in New Issue
Block a user