Skip to content

Commit 4cebce3

Browse files
committed
This option lives in the create options, not the run options
Signed-off-by: Matt Armand <[email protected]>
1 parent bd8e574 commit 4cebce3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/compose/run.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ func runCommand(p *ProjectOptions, streams api.Streams, backend api.Service) *co
162162
flags.BoolVar(&opts.servicePorts, "service-ports", false, "Run command with the service's ports enabled and mapped to the host.")
163163
flags.BoolVar(&opts.quietPull, "quiet-pull", false, "Pull without printing progress information.")
164164
flags.BoolVar(&createOpts.Build, "build", false, "Build image before starting container.")
165-
flags.BoolVar(&opts.removeOrphans, "remove-orphans", false, "Remove containers for services not defined in the Compose file.")
165+
flags.BoolVar(&createOpts.removeOrphans, "remove-orphans", false, "Remove containers for services not defined in the Compose file.")
166166

167167
cmd.Flags().BoolVarP(&opts.interactive, "interactive", "i", true, "Keep STDIN open even if not attached.")
168168
cmd.Flags().BoolP("tty", "t", true, "Allocate a pseudo-TTY.")

0 commit comments

Comments
 (0)