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:
Guillaume Tardif 2020-12-07 16:29:53 +01:00
parent 6aec88e74c
commit 04cdd8dd40
1 changed files with 3 additions and 1 deletions

View File

@ -75,7 +75,9 @@ func Command(contextType string) *cobra.Command {
Short: "Docker Compose",
Use: "compose",
PersistentPreRunE: func(cmd *cobra.Command, args []string) error {
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
},
}