DOCKER-BUILDX-RM(1)
π DOCKER-BUILDX-RM π
okay bestie, welcome to docker-buildx-rm(1) β the page where we learn how to yeet builder instances into the void ποΈβ¨
πΈ NAME πΈ
docker-buildx-rm β remove one or more builder instances. plural. we're not just deleting one thing, we're deleting things. π
β¨ SYNOPSIS β¨
docker buildx rm [OPTIONS] [NAME] [NAME...]
π¦ DESCRIPTION π¦
So basically? It removes the builder you named. Or, if you didn't name anyone, it removes the current one. main character energy but make it destructive π
β οΈ And here's the lil plot twist: if you try to remove the default builder, it's a no-op. Like, nothing happens. It's giving "the door is locked and honestly that's for your own good." πͺπ
π OPTIONS π
--all-inactive[=false] β remove all the inactive builders. not one. not two. all of them. go off π€-f,--force[=false] β do not prompt for confirmation. no lil "are you sure?" moment, we just go π-h,--help[=false] β help forrm. the classic. the icon. the "wait what does this do again" savior π«Ά--keep-daemon[=false] β keep the BuildKit daemon running. we're breaking up with the context, not the daemon. respectful. mature. π--keep-state[=false] β keep BuildKit state, so a new builder with the same name can reuse it later. it's not goodbye, it's "see you around" π
π OPTIONS INHERITED FROM PARENT COMMANDS π
--builder=""β override the configured builder instance. your builder, your rules β¨
π₯ EXAMPLE π₯
### Remove all inactive builders (--all-inactive) {#all-inactive}
Remove builders that are not in running state. bye to everyone who isn't thriving rn π
$ docker buildx rm --all-inactive
WARNING! This will remove all builders that are not in running state. Are you sure you want to continue? [y/N] y
Override the configured builder instance (--builder) {#builder}
Same as β¨/reference/cli/docker/buildx/#builderβ©. literally the same thing bestie, go read that one π§
Do not prompt for confirmation (--force) {#force}
Do not prompt for confirmation before removing inactive builders. no questions, no hesitation, no "u sure?" β periodt π
$ docker buildx rm --all-inactive --force
Keep the BuildKit daemon running (--keep-daemon) {#keep-daemon}
Keep the BuildKit daemon running after the buildx context is removed. This is useful when you manage BuildKit daemons and buildx contexts independently. π§
π¨ but listen β this is Only supported by the β¨/build/drivers/docker-container/β© and β¨/build/drivers/kubernetes/β© drivers. so if you're on anything else, this is not the vibe.
Keep BuildKit state (--keep-state) {#keep-state}
Keep BuildKit state, so it can be reused by a new builder with the same name. β»οΈ
π¨ Currently, only supported by the β¨/build/drivers/docker-container/β©.
π SEE ALSO π
docker-buildx(1) β go read the parent, it raised this one π±
that's the whole page bestie, hope your builders rest in peace ποΈ
this was DOCKER-BUILDX-RM(1), from Apr 2025 β mwah, stan, slay, bye πβ¨π
π¦ where this page comes from
- debian trixie: docker-buildx 0.13.1+ds1-3 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms