Display compose experimental disclaimer only for local context type or moby (default) context type. Fixes ACI / ECS e2e tests.
@@ -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
},
}
