Skip to content

Commit 19a23c0

Browse files
committed
Docker: how to use a configuration file
Signed-off-by: Gabriel Lopes Rodrigues <[email protected]>
1 parent e486ba5 commit 19a23c0

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

installation/docker.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,21 @@ 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 cr.fluentbit.io/fluent/fluent-bit
22+
```
23+
24+
{% tab title="fluent-bit.yaml" %}
25+
```shell
26+
docker run -ti -v ./fluent-bit.yaml:/fluent-bit/etc/fluent-bit.yaml cr.fluentbit.io/fluent/fluent-bit -c /fluent-bit/etc/fluent-bit.yaml
27+
```
28+
1429
## Tags and versions
1530

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

0 commit comments

Comments
 (0)