Skip to content
This repository was archived by the owner on Nov 27, 2023. It is now read-only.

Commit 04cdd8d

Browse files
committed
Display compose experimental disclaimer only for local context type or moby (default) context type. Fixes ACI / ECS e2e tests.
Signed-off-by: Guillaume Tardif <[email protected]>
1 parent 6aec88e commit 04cdd8d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cli/cmd/compose/compose.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,9 @@ func Command(contextType string) *cobra.Command {
7575
Short: "Docker Compose",
7676
Use: "compose",
7777
PersistentPreRunE: func(cmd *cobra.Command, args []string) error {
78-
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")
78+
if contextType == store.DefaultContextType || contextType == store.LocalContextType {
79+
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")
80+
}
7981
return nil
8082
},
8183
}

0 commit comments

Comments
 (0)