From 4cebce3a5c4f38a113f73038f6f83b27efba4bd9 Mon Sep 17 00:00:00 2001 From: Matt Armand Date: Wed, 11 Jan 2023 12:07:51 -0500 Subject: [PATCH] This option lives in the create options, not the run options Signed-off-by: Matt Armand --- cmd/compose/run.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/compose/run.go b/cmd/compose/run.go index 9ae5d7d88..f66ad557f 100644 --- a/cmd/compose/run.go +++ b/cmd/compose/run.go @@ -162,7 +162,7 @@ func runCommand(p *ProjectOptions, streams api.Streams, backend api.Service) *co flags.BoolVar(&opts.servicePorts, "service-ports", false, "Run command with the service's ports enabled and mapped to the host.") flags.BoolVar(&opts.quietPull, "quiet-pull", false, "Pull without printing progress information.") flags.BoolVar(&createOpts.Build, "build", false, "Build image before starting container.") - flags.BoolVar(&opts.removeOrphans, "remove-orphans", false, "Remove containers for services not defined in the Compose file.") + flags.BoolVar(&createOpts.removeOrphans, "remove-orphans", false, "Remove containers for services not defined in the Compose file.") cmd.Flags().BoolVarP(&opts.interactive, "interactive", "i", true, "Keep STDIN open even if not attached.") cmd.Flags().BoolP("tty", "t", true, "Allocate a pseudo-TTY.")