mirror of https://github.com/docker/compose.git
Display compose experimental disclaimer only for local context type or moby (default) context type. Fixes ACI / ECS e2e tests.
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
This commit is contained in:
parent
6aec88e74c
commit
04cdd8dd40
|
@ -75,7 +75,9 @@ func Command(contextType string) *cobra.Command {
|
|||
Short: "Docker Compose",
|
||||
Use: "compose",
|
||||
PersistentPreRunE: func(cmd *cobra.Command, args []string) error {
|
||||
fmt.Println("The new 'docker compose' command is currently experimental. To provide feedback or request new features please open issues at https://github.com/docker/compose-cli")
|
||||
if contextType == store.DefaultContextType || contextType == store.LocalContextType {
|
||||
fmt.Println("The new 'docker compose' command is currently experimental. To provide feedback or request new features please open issues at https://github.com/docker/compose-cli")
|
||||
}
|
||||
return nil
|
||||
},
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue