Skip to content

Commit 0615d2d

Browse files
committed
Use latest fluentd image by edge-debian
Signed-off-by: Kentaro Hayashi <kenhys@gmail.com>
1 parent bfa6063 commit 0615d2d

File tree

1 file changed

+18
-15
lines changed

1 file changed

+18
-15
lines changed

container-deployment/install-by-docker.md

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ Please download and install [Docker](https://www.docker.com/) from here:
1313

1414
## Step 1: Pull Fluentd Docker Image
1515

16-
Then, download Fluentd v1.6-debian-1's image by `docker pull` command:
16+
Then, download Fluentd edge-debian's (edge-debian means latest version of Fluentd) image by `docker pull` command:
1717

1818
```text
19-
$ docker pull fluent/fluentd:v1.6-debian-1
19+
$ docker pull fluent/fluentd:edge-debian
2020
```
2121

2222
Debian and Alpine Linux version is available for Fluentd image. Debian version is recommended officially since it has [`jemalloc`](https://github.com/jemalloc/jemalloc) support. However, the Alpine image is smaller.
@@ -42,9 +42,11 @@ To make the test simple, create the example config below at `$(pwd)/tmp/fluentd.
4242
Finally, you can run Fluentd with `docker run` command:
4343

4444
```text
45-
$ docker run -p 9880:9880 -v $(pwd)/tmp:/fluentd/etc -e FLUENTD_CONF=fluentd.conf fluent/fluentd:v1.6-debian-1
46-
2019-08-21 00:30:37 +0000 [info]: parsing config file is succeeded path="/fluentd/etc/fluentd.conf"
47-
2019-08-21 00:30:37 +0000 [info]: using configuration file: <ROOT>
45+
$ docker run -p 9880:9880 -v $(pwd)/tmp:/fluentd/etc fluent/fluentd:edge-debian -c /fluentd/etc/fluentd.conf
46+
2021-03-16 09:11:32 +0000 [info]: parsing config file is succeeded path="/fluentd/etc/fluentd.conf"
47+
2021-03-16 09:11:32 +0000 [info]: gem 'fluentd' version '1.11.5'
48+
2021-03-16 09:11:32 +0000 [warn]: define <match fluent.**> to capture fluentd logs in top level is deprecated. Use <label @FLUENT_LOG> instead
49+
2021-03-16 09:11:32 +0000 [info]: using configuration file: <ROOT>
4850
<source>
4951
@type http
5052
port 9880
@@ -54,14 +56,15 @@ $ docker run -p 9880:9880 -v $(pwd)/tmp:/fluentd/etc -e FLUENTD_CONF=fluentd.con
5456
@type stdout
5557
</match>
5658
</ROOT>
57-
2019-08-21 00:30:37 +0000 [info]: starting fluentd-1.6.3 pid=6 ruby="2.6.3"
58-
2019-08-21 00:30:37 +0000 [info]: spawn command to main: cmdline=["/usr/local/bin/ruby", "-Eascii-8bit:ascii-8bit", "/usr/local/bundle/bin/fluentd", "-c", "/fluentd/etc/fluentd.conf", "-p", "/fluentd/plugins", "--under-supervisor"]
59-
2019-08-21 00:30:38 +0000 [info]: gem 'fluentd' version '1.6.3'
60-
2019-08-21 00:30:38 +0000 [info]: adding match pattern="**" type="stdout"
61-
2019-08-21 00:30:38 +0000 [info]: adding source type="http"
62-
2019-08-21 00:30:38 +0000 [info]: #0 starting fluentd worker pid=13 ppid=6 worker=0
63-
2019-08-21 00:30:38 +0000 [info]: #0 fluentd worker is now running worker=0
64-
2019-08-21 00:30:38.332472611 +0000 fluent.info: {"worker":0,"message":"fluentd worker is now running worker=0"}
59+
2021-03-16 09:11:32 +0000 [info]: starting fluentd-1.11.5 pid=7 ruby="2.6.6"
60+
2021-03-16 09:11:32 +0000 [info]: spawn command to main: cmdline=["/usr/local/bin/ruby", "-Eascii-8bit:ascii-8bit", "/usr/local/bundle/bin/fluentd", "-c", "/fluentd/etc/fluentd.conf", "-p", "/fluentd/plugins", "--under-supervisor"]
61+
2021-03-16 09:11:33 +0000 [info]: adding match pattern="**" type="stdout"
62+
2021-03-16 09:11:33 +0000 [info]: adding source type="http"
63+
2021-03-16 09:11:33 +0000 [warn]: #0 define <match fluent.**> to capture fluentd logs in top level is deprecated. Use <label @FLUENT_LOG> instead
64+
2021-03-16 09:11:33 +0000 [info]: #0 starting fluentd worker pid=16 ppid=7 worker=0
65+
2021-03-16 09:11:33 +0000 [info]: #0 fluentd worker is now running worker=0
66+
2021-03-16 09:11:33.025408358 +0000 fluent.info: {"pid":16,"ppid":7,"worker":0,"message":"starting fluentd worker pid=16 ppid=7 worker=0"}
67+
2021-03-16 09:11:33.026503372 +0000 fluent.info: {"worker":0,"message":"fluentd worker is now running worker=0"}
6568
```
6669

6770
## Step 3: Post Sample Logs via HTTP
@@ -77,10 +80,10 @@ Use `docker ps` command to retrieve container ID and use `docker logs` command t
7780
```text
7881
$ docker ps -a
7982
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
80-
775a8e192f2b fluent/fluentd:v1.6-debian-1 "tini -- /bin/entryp…" About a minute ago Up About a minute 5140/tcp, 24224/tcp, 0.0.0.0:9880->9880/tcp tender_leakey
83+
775a8e192f2b fluent/fluentd:edge-debian "tini -- /bin/entryp…" About a minute ago Up About a minute 5140/tcp, 24224/tcp, 0.0.0.0:9880->9880/tcp tender_leakey
8184
8285
$ docker logs 775a8e192f2b | tail -n 1
83-
2019-08-21 00:33:00.570707843 +0000 sample.test: {"json":"message"}
86+
2021-03-16 09:12:15.257351750 +0000 sample.test: {"json":"message"}
8487
```
8588

8689
## Next Steps

0 commit comments

Comments
 (0)