Skip to content

Commit 626187c

Browse files
authored
Docker: how to use a configuration file (#1634)
* Docker: how to use a configuration file Signed-off-by: Gabriel Lopes Rodrigues <[email protected]> * Docker: fix closing tabs Signed-off-by: Gabriel Lopes Rodrigues <[email protected]> * Docker: break lines inside commands Signed-off-by: Gabriel Lopes Rodrigues <[email protected]> --------- Signed-off-by: Gabriel Lopes Rodrigues <[email protected]>
1 parent 39cc57f commit 626187c

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

installation/docker.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,28 @@ Use the following command to start Docker with Fluent Bit:
1111
docker run -ti cr.fluentbit.io/fluent/fluent-bit
1212
```
1313

14+
### Use a configuration file
15+
16+
Use the following command to start Fluent Bit while using a configuration file:
17+
18+
{% tabs %}
19+
{% tab title="fluent-bit.conf" %}
20+
```shell
21+
docker run -ti -v ./fluent-bit.conf:/fluent-bit/etc/fluent-bit.conf \
22+
cr.fluentbit.io/fluent/fluent-bit
23+
```
24+
{% endtab %}
25+
26+
{% tab title="fluent-bit.yaml" %}
27+
```shell
28+
docker run -ti -v ./fluent-bit.yaml:/fluent-bit/etc/fluent-bit.yaml \
29+
cr.fluentbit.io/fluent/fluent-bit \
30+
-c /fluent-bit/etc/fluent-bit.yaml
31+
```
32+
{% endtab %}
33+
{% endtabs %}
34+
35+
1436
## Tags and versions
1537

1638
The following table describes the Linux container tags that are available on Docker

0 commit comments

Comments
 (0)