DOCKER-BUILDX-RM(1)

πŸ“¦ version 0.13.1, in debian trixie

πŸ’– 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 for rm. 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