Skip to content

How do I use the configuration file in yaml format when I use docker #13410

Answered by spencergilbert
Fury76 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @Fury76, Vector will parse the file as needed so this should work:

docker run -v $PWD/vector.yaml:/etc/vector/vector.yaml:ro timberio/vector:0.22.3-debian -c /etc/vector/vector.yaml

However, if you want to enforce YAML configs you can swap the -c for --config-yaml.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by spencergilbert
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants