Linux command
docker-buildx-rm 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Remove a specific
docker buildx rm [builder_name]
Remove a builder
docker buildx rm -f [builder_name]
Remove all inactive
docker buildx rm --all-inactive
Remove a builder
docker buildx rm --keep-daemon [builder_name]
Remove a builder
docker buildx rm --keep-state [builder_name]
说明
docker buildx rm removes the specified builder instance or, if no name is given, the currently selected builder. Removing the default builder is a no-op since it uses the Docker daemon's built-in build capabilities. The command stops the associated BuildKit daemon and cleans up its state by default. Use --keep-daemon to leave the daemon running independently, or --keep-state to preserve build cache and state for a future builder with the same name.
参数
- --all-inactive
- Remove all inactive builder instances.
- -f, --force
- Do not prompt for confirmation.
- --keep-daemon
- Keep the BuildKit daemon running after removing the builder. Supported by docker-container and kubernetes drivers only.
- --keep-state
- Preserve BuildKit state so a new builder with the same name can reuse it. Supported by docker-container driver only.
- --timeout _duration_
- Override default timeout for loading builder status (default: 20s).
FAQ
What is the docker-buildx-rm command used for?
docker buildx rm removes the specified builder instance or, if no name is given, the currently selected builder. Removing the default builder is a no-op since it uses the Docker daemon's built-in build capabilities. The command stops the associated BuildKit daemon and cleans up its state by default. Use --keep-daemon to leave the daemon running independently, or --keep-state to preserve build cache and state for a future builder with the same name.
How do I run a basic docker-buildx-rm example?
Run `docker buildx rm [builder_name]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does --all-inactive do in docker-buildx-rm?
Remove all inactive builder instances.