buildx/docs/reference/buildx_rm.md
Mayeul Blanzat 72dab552b5 Add an option to buildx rm to keep the buildkitd daemon running
Add --keep-daemon to the `rm` command option to preserve the buildkitd daemon after the buildx context is deleted.

Signed-off-by: Mayeul Blanzat <mayeul.blanzat@datadoghq.com>
2021-11-22 13:24:47 +01:00

1.2 KiB

buildx rm

docker buildx rm [NAME]

Remove a builder instance

Options

Name Description
--builder string Override the configured builder instance
--keep-daemon Keep the buildkitd daemon running
--keep-state Keep BuildKit state

Description

Removes the specified or current builder. It is a no-op attempting to remove the default builder.

Examples

Override the configured builder instance (--builder)

Same as buildx --builder.

Keep BuildKit state (--keep-state)

Keep BuildKit state, so it can be reused by a new builder with the same name. Currently, only supported by the docker-container driver.

Keep the buildkitd daemon running (--keep-daemon)

Keep the buildkitd daemon running after the buildx context is removed. This is useful when you manage buildkitd daemons and buildx contexts independently. Currently, only supported by the docker-container and kubernetes drivers.