Skip to content

Commit e6e9f8d

Browse files
committed
buildx: default-load driver opt
Signed-off-by: David Karlsson <[email protected]>
1 parent c47c293 commit e6e9f8d

File tree

3 files changed

+23
-20
lines changed

3 files changed

+23
-20
lines changed

content/build/drivers/docker-container.md

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -33,20 +33,21 @@ container
3333
The following table describes the available driver-specific options that you can
3434
pass to `--driver-opt`:
3535

36-
| Parameter | Type | Default | Description |
37-
| ---------------- | ------ | ---------------- | ---------------------------------------------------------------------------------------------------------------------- |
38-
| `image` | String | | Sets the BuildKit image to use for the container. |
39-
| `memory` | String | | Sets the amount of memory the container can use. |
40-
| `memory-swap` | String | | Sets the memory swap limit for the container. |
41-
| `cpu-quota` | String | | Imposes a CPU CFS quota on the container. |
42-
| `cpu-period` | String | | Sets the CPU CFS scheduler period for the container. |
43-
| `cpu-shares` | String | | Configures CPU shares (relative weight) of the container. |
44-
| `cpuset-cpus` | String | | Limits the set of CPU cores the container can use. |
45-
| `cpuset-mems` | String | | Limits the set of CPU memory nodes the container can use. |
46-
| `network` | String | | Sets the network mode for the container. |
47-
| `cgroup-parent` | String | `/docker/buildx` | Sets the cgroup parent of the container if Docker is using the "cgroupfs" driver. |
48-
| `restart-policy` | String | `unless-stopped` | Sets the container's [restart policy](../../config/containers/start-containers-automatically.md#use-a-restart-policy). |
49-
| `env.<key>` | String | | Sets the environment variable `key` to the specified `value` in the container. |
36+
| Parameter | Type | Default | Description |
37+
| ---------------- | ------- | ---------------- | ---------------------------------------------------------------------------------------------------------------------- |
38+
| `image` | String | | Sets the BuildKit image to use for the container. |
39+
| `memory` | String | | Sets the amount of memory the container can use. |
40+
| `memory-swap` | String | | Sets the memory swap limit for the container. |
41+
| `cpu-quota` | String | | Imposes a CPU CFS quota on the container. |
42+
| `cpu-period` | String | | Sets the CPU CFS scheduler period for the container. |
43+
| `cpu-shares` | String | | Configures CPU shares (relative weight) of the container. |
44+
| `cpuset-cpus` | String | | Limits the set of CPU cores the container can use. |
45+
| `cpuset-mems` | String | | Limits the set of CPU memory nodes the container can use. |
46+
| `default-load` | Boolean | `false` | Automatically load images to the Docker Engine image store. |
47+
| `network` | String | | Sets the network mode for the container. |
48+
| `cgroup-parent` | String | `/docker/buildx` | Sets the cgroup parent of the container if Docker is using the "cgroupfs" driver. |
49+
| `restart-policy` | String | `unless-stopped` | Sets the container's [restart policy](../../config/containers/start-containers-automatically.md#use-a-restart-policy). |
50+
| `env.<key>` | String | | Sets the environment variable `key` to the specified `value` in the container. |
5051

5152
Before you configure the resource limits for the container,
5253
read about [configuring runtime resource constraints for containers](../../config/containers/resource_constraints/).

content/build/drivers/kubernetes.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ can pass to `--driver-opt`:
3838
| `requests.memory` | Memory size | | Sets the request memory value specified in bytes or with a valid suffix. For example `requests.memory=500Mi` or `requests.memory=4G` |
3939
| `limits.cpu` | CPU units | | Sets the limit CPU value specified in units of Kubernetes CPU. For example `requests.cpu=100m` or `requests.cpu=2` |
4040
| `limits.memory` | Memory size | | Sets the limit memory value specified in bytes or with a valid suffix. For example `requests.memory=500Mi` or `requests.memory=4G` |
41+
| `default-load` | Boolean | `false` | Automatically load images to the Docker Engine image store. |
4142
| `nodeselector` | CSV string | | Sets the pod's `nodeSelector` label(s). See [node assignment][2]. |
4243
| `annotation` | CSV string | | Sets additional annotations on the deployments and pods. |
4344
| `labels` | CSV string | | Sets additional labels on the deployments and pods. |

content/build/drivers/remote.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,13 @@ $ docker buildx create \
2626
The following table describes the available driver-specific options that you can
2727
pass to `--driver-opt`:
2828

29-
| Parameter | Type | Default | Description |
30-
| ------------ | ------ | ------------------ | ---------------------------------------------------------------------- |
31-
| `key` | String | | Sets the TLS client key. |
32-
| `cert` | String | | Absolute path to the TLS client certificate to present to `buildkitd`. |
33-
| `cacert` | String | | Absolute path to the TLS certificate authority used for validation. |
34-
| `servername` | String | Endpoint hostname. | TLS server name used in requests. |
29+
| Parameter | Type | Default | Description |
30+
| -------------- | ------- | ------------------ | ---------------------------------------------------------------------- |
31+
| `key` | String | | Sets the TLS client key. |
32+
| `cert` | String | | Absolute path to the TLS client certificate to present to `buildkitd`. |
33+
| `cacert` | String | | Absolute path to the TLS certificate authority used for validation. |
34+
| `servername` | String | Endpoint hostname. | TLS server name used in requests. |
35+
| `default-load` | Boolean | `false` | Automatically load images to the Docker Engine image store. |
3536

3637
## Example: Remote BuildKit over Unix sockets
3738

0 commit comments

Comments
 (0)