From 379ceb9eeaf7f5566a2395b292fe1050923b1ad1 Mon Sep 17 00:00:00 2001 From: David Karlsson <35727626+dvdksn@users.noreply.github.com> Date: Thu, 8 Feb 2024 20:20:25 +0100 Subject: [PATCH] buildx(docker-container): restart-policy opt Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com> --- content/build/drivers/docker-container.md | 27 ++++++++++++----------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/content/build/drivers/docker-container.md b/content/build/drivers/docker-container.md index 1705c1fb12..4452b35e88 100644 --- a/content/build/drivers/docker-container.md +++ b/content/build/drivers/docker-container.md @@ -33,19 +33,20 @@ container The following table describes the available driver-specific options that you can pass to `--driver-opt`: -| Parameter | Type | Default | Description | -| --------------- | ------ | ---------------- | --------------------------------------------------------------------------------- | -| `image` | String | | Sets the BuildKit image to use for the container. | -| `memory` | String | | Sets the amount of memory the container can use. | -| `memory-swap` | String | | Sets the memory swap limit for the container. | -| `cpu-quota` | String | | Imposes a CPU CFS quota on the container. | -| `cpu-period` | String | | Sets the CPU CFS scheduler period for the container. | -| `cpu-shares` | String | | Configures CPU shares (relative weight) of the container. | -| `cpuset-cpus` | String | | Limits the set of CPU cores the container can use. | -| `cpuset-mems` | String | | Limits the set of CPU memory nodes the container can use. | -| `network` | String | | Sets the network mode for the container. | -| `cgroup-parent` | String | `/docker/buildx` | Sets the cgroup parent of the container if Docker is using the "cgroupfs" driver. | -| `env.` | String | | Sets the environment variable `key` to the specified `value` in the container. | +| Parameter | Type | Default | Description | +| ---------------- | ------ | ---------------- | ---------------------------------------------------------------------------------------------------------------------- | +| `image` | String | | Sets the BuildKit image to use for the container. | +| `memory` | String | | Sets the amount of memory the container can use. | +| `memory-swap` | String | | Sets the memory swap limit for the container. | +| `cpu-quota` | String | | Imposes a CPU CFS quota on the container. | +| `cpu-period` | String | | Sets the CPU CFS scheduler period for the container. | +| `cpu-shares` | String | | Configures CPU shares (relative weight) of the container. | +| `cpuset-cpus` | String | | Limits the set of CPU cores the container can use. | +| `cpuset-mems` | String | | Limits the set of CPU memory nodes the container can use. | +| `network` | String | | Sets the network mode for the container. | +| `cgroup-parent` | String | `/docker/buildx` | Sets the cgroup parent of the container if Docker is using the "cgroupfs" driver. | +| `restart-policy` | String | `unless-stopped` | Sets the container's [restart policy](../../config/containers/start-containers-automatically.md#use-a-restart-policy). | +| `env.` | String | | Sets the environment variable `key` to the specified `value` in the container. | Before you configure the resource limits for the container, read about [configuring runtime resource constraints for containers](../../config/containers/resource_constraints/).