diff --git a/cmd/compose/up.go b/cmd/compose/up.go index 6c2669d63..b4ee9357c 100644 --- a/cmd/compose/up.go +++ b/cmd/compose/up.go @@ -93,6 +93,7 @@ func upCommand(p *ProjectOptions, streams api.Streams, backend api.Service) *cob Use: "up [OPTIONS] [SERVICE...]", Short: "Create and start containers", PreRunE: AdaptCmd(func(ctx context.Context, cmd *cobra.Command, args []string) error { + create.pullChanged = cmd.Flags().Changed("pull") create.timeChanged = cmd.Flags().Changed("timeout") return validateFlags(&up, &create) }), diff --git a/e2e/cucumber-features/up.feature b/e2e/cucumber-features/up.feature new file mode 100644 index 000000000..10fc77ffd --- /dev/null +++ b/e2e/cucumber-features/up.feature @@ -0,0 +1,15 @@ +Feature: Up + +Background: + Given a compose file + """ + services: + simple: + image: alpine + command: top + """ + +Scenario: --pull always + When I run "compose up --pull=always -d" + Then the output contains "simple Pulled" +