How do I use the configuration file in yaml format when I use docker #13410
-
How do I use the configuration file in yaml format when I use docker The example only show me use toml format |
Beta Was this translation helpful? Give feedback.
Answered by
spencergilbert
Jul 1, 2022
Replies: 1 comment
-
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 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
spencergilbert
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
.