Skip to content

Docker: how to use a configuration file #1634

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

mrgalopes
Copy link

Hello!

I was testing Fluent Bit earlier this week, and struggled with getting the new YAML configuration file to work with Docker.
Just mounting the volume doesn't work, the default fluent-bit.conf in the image takes precedence over the YAML file, which took me a while to troubleshoot.

For example:

# fluent-bit.yaml
pipeline:
  inputs:
    - name: dummy
      dummy: '{"from": "yaml"}'

  outputs:
    - name: stdout

Running docker run -ti -v ./fluent-bit.yaml:/fluent-bit/etc/fluent-bit.yaml cr.fluentbit.io/fluent/fluent-bit does not load the YAML file.

Mounting the .conf file works though.
Maybe this will help those who tried the same thing as I did.

Let me know if you think anything needs changing or if you believe there is a better way to do this. Thanks!

Signed-off-by: Gabriel Lopes Rodrigues <[email protected]>
@mrgalopes mrgalopes requested review from a team as code owners May 9, 2025 01:04
mrgalopes added 2 commits May 8, 2025 22:07
Signed-off-by: Gabriel Lopes Rodrigues <[email protected]>
Signed-off-by: Gabriel Lopes Rodrigues <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants