mirror of
https://github.com/docker/compose.git
synced 2025-04-08 17:05:13 +02:00
Merge pull request #1022 from gtardif/compose_disclaimer_moby_context
Display compose experimental disclaimer only for local context type or moby (default) context type
This commit is contained in:
commit
54b86cd912
@ -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…
x
Reference in New Issue
Block a user