Skip to content

Commit

Permalink
build: add missing flags
Browse files Browse the repository at this point in the history
Signed-off-by: Tonis Tiigi <[email protected]>
  • Loading branch information
tonistiigi committed May 15, 2019
1 parent cb83df7 commit 717a4af
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions commands/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 != "" {
Expand Down

0 comments on commit 717a4af

Please sign in to comment.