Skip to content

Commit 02af4f8

Browse files
committed
Update warning message when using external compose provider
Change the warning message at runtime to refer to the man page of podman-compose instead of "the documentation" Add instructions in the man page on how to disable the warning emitted by podman-compose when using an external compose provider Signed-off-by: marinmo <[email protected]>
1 parent 25bc426 commit 02af4f8

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

cmd/podman/compose.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ func composeProviderExec(args []string, stdout io.Writer, stderr io.Writer, warn
202202
logrus.Debugf("Executing compose provider (%s %s) with additional env %s", provider, strings.Join(args, " "), strings.Join(env, " "))
203203

204204
if warn {
205-
fmt.Fprint(os.Stderr, underline(fmt.Sprintf(">>>> Executing external compose provider %q. Please refer to the documentation for details. <<<<\n\n", provider)))
205+
fmt.Fprint(os.Stderr, underline(fmt.Sprintf(">>>> Executing external compose provider %q. Please see podman-compose(1) for how to disable this message. <<<<\n\n", provider)))
206206
}
207207

208208
if err := cmd.Run(); err != nil {

docs/source/markdown/podman-compose.1.md.in

+2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ The default compose providers are `docker-compose` and `podman-compose`. If ins
1313

1414
If you want to change the default behavior or have a custom installation path for your provider of choice, please change the `compose_provider` field in `containers.conf(5)`. You may also set the `PODMAN_COMPOSE_PROVIDER` environment variable.
1515

16+
By default, `podman compose` will emit a warning saying that it executes an external command. This warning can be disabled by setting `compose_warning_logs` to false in `containers.conf(5)` or setting the `PODMAN_COMPOSE_WARNING_LOGS` environment variable to false. See the man page for `containers.conf(5)` for more information.
17+
1618
## OPTIONS
1719

1820
To see supported options of the installed compose provider, please run `podman compose --help`.

0 commit comments

Comments
 (0)