mirror of
https://github.com/docker/compose.git
synced 2025-07-25 14:44:29 +02:00
Fix -t flag for compose up command
Signed-off-by: Debdut Chakraborty <debdut.chakraborty@rocket.chat>
This commit is contained in:
parent
35b4d1de28
commit
55a214a45e
@ -98,10 +98,8 @@ func upCommand(p *projectOptions, backend api.Service) *cobra.Command {
|
|||||||
upCmd := &cobra.Command{
|
upCmd := &cobra.Command{
|
||||||
Use: "up [SERVICE...]",
|
Use: "up [SERVICE...]",
|
||||||
Short: "Create and start containers",
|
Short: "Create and start containers",
|
||||||
PreRun: func(cmd *cobra.Command, args []string) {
|
PreRunE: AdaptCmd(func(ctx context.Context, cmd *cobra.Command, args []string) error {
|
||||||
create.timeChanged = cmd.Flags().Changed("timeout")
|
create.timeChanged = cmd.Flags().Changed("timeout")
|
||||||
},
|
|
||||||
PreRunE: Adapt(func(ctx context.Context, args []string) error {
|
|
||||||
if up.exitCodeFrom != "" {
|
if up.exitCodeFrom != "" {
|
||||||
up.cascadeStop = true
|
up.cascadeStop = true
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user