PODMAN_COMPOSE_WARNING_LOGS is not respected #23441
Labels
kind/bug
Categorizes issue or PR as related to a bug.
locked - please file new issue/PR
Assist humans wanting to comment on an old issue or PR with locked comments.
Issue Description
By default, each invocation of
podman compose
outputs a notice to stderr regardless of configuredlog-level
:We would like to silence these without swallowing the stderr from the attached container itself and without editing configuration files on the client or host.
According to
podman compose manpage
, this line should be possible to disable via thePODMAN_COMPOSE_WARNING_LOGS
environment variable but this does not seem effective.Steps to reproduce the issue
None of these work:
(Also tried variations
PODMAN_COMPOSE_ENGINE_WARNING_LOGS
,COMPOSE_ENGINE_WARNING_LOGS
,COMPOSE_WARNING_LOGS
)Neither does attempting to shell around via
CONTAINERS_CONF_OVERRIDE
:Forcing it via an actual configuration file does work:
Describe the results you received
Banner is still output regardless of environment variables
Describe the results you expected
Banner is silenced like when setting
[engine]\ncompose_warning_logs=false
in configuration file.podman info output
Podman in a container
No
Privileged Or Rootless
Rootless
Upstream Latest Release
Yes
Additional environment details
Additional information
Nothing relevant to the issue shows up by changing
--log-level=error
to--log-level=trace
.The text was updated successfully, but these errors were encountered: