From 717a4afae0db63b3de7fe41ab0e03650d8d7a30b Mon Sep 17 00:00:00 2001 From: Tonis Tiigi Date: Tue, 14 May 2019 18:06:23 -0700 Subject: [PATCH] build: add missing flags Signed-off-by: Tonis Tiigi --- commands/build.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/commands/build.go b/commands/build.go index 3ca62b44ba5..81ad159e320 100644 --- a/commands/build.go +++ b/commands/build.go @@ -254,6 +254,10 @@ func buildCmd(dockerCli command.Cli) *cobra.Command { flags.MarkHidden("cgroup-parent") flags.StringVar(&ignore, "isolation", "", "Container isolation technology") flags.MarkHidden("isolation") + flags.BoolVar(&ignoreBool, "rm", true, "Remove intermediate containers after a successful build") + flags.MarkHidden("rm") + flags.BoolVar(&ignoreBool, "force-rm", false, "Always remove intermediate containers") + flags.MarkHidden("force-rm") platformsDefault := []string{} if v := os.Getenv("DOCKER_DEFAULT_PLATFORM"); v != "" {