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

Commit 54b86cd

Browse files
authored
Merge pull request #1022 from gtardif/compose_disclaimer_moby_context
Display compose experimental disclaimer only for local context type or moby (default) context type
2 parents 18db1c8 + 04cdd8d commit 54b86cd

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)