Skip to content

Commit 744e9d7

Browse files
committed
updated commands and version
Signed-off-by: Eric Stumbo <ericstumbo@student.purdueglobal.edu>
1 parent 2f8187a commit 744e9d7

File tree

1 file changed

+20
-17
lines changed

1 file changed

+20
-17
lines changed

container-deployment/install-by-docker.md

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

1616
## Step 1: Pull Fluentd's Docker image
1717

18-
Then, please download Fluentd v0.12's image by `docker pull` command.
18+
Then, please download Fluentd vv1.6-debian-1's image by `docker pull` command.
1919

2020
``` {.CodeRay}
21-
$ docker pull fluent/fluentd:v0.12-debian
21+
$ docker pull fluent/fluentd:v1.6-debian-1
2222
```
2323
Debian and Alpine Linux version is available for Fluentd image. Debian
2424
version is recommended officially since it has jemalloc support, however
@@ -45,24 +45,26 @@ to stdout.
4545
Finally, you can run Fluentd with `docker run` command.
4646

4747
``` {.CodeRay}
48-
$ docker run -d \
49-
-p 9880:9880 -v /tmp:/fluentd/etc -e FLUENTD_CONF=fluentd.conf \
50-
fluent/fluentd
51-
2017-01-30 11:52:23 +0000 [info]: reading config file path="/fluentd/etc/fluentd.conf"
52-
2017-01-30 11:52:23 +0000 [info]: starting fluentd-0.12.31
53-
2017-01-30 11:52:23 +0000 [info]: gem 'fluentd' version '0.12.31'
54-
2017-01-30 11:52:23 +0000 [info]: adding match pattern="**" type="stdout"
55-
2017-01-30 11:52:23 +0000 [info]: adding source type="http"
56-
2017-01-30 11:52:23 +0000 [info]: using configuration file: <ROOT>
48+
$ docker run -p 9880:9880 -v $(pwd)/tmp:/fluentd/etc -e FLUENTD_CONF=fluentd.conf fluent/fluentd:v1.6-debian-1
49+
2019-08-21 00:30:37 +0000 [info]: parsing config file is succeeded path="/fluentd/etc/fluentd.conf"
50+
2019-08-21 00:30:37 +0000 [info]: using configuration file: <ROOT>
5751
<source>
5852
@type http
5953
port 9880
60-
bind 0.0.0.0
54+
bind "0.0.0.0"
6155
</source>
6256
<match **>
6357
@type stdout
6458
</match>
6559
</ROOT>
60+
2019-08-21 00:30:37 +0000 [info]: starting fluentd-1.6.3 pid=6 ruby="2.6.3"
61+
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"]
62+
2019-08-21 00:30:38 +0000 [info]: gem 'fluentd' version '1.6.3'
63+
2019-08-21 00:30:38 +0000 [info]: adding match pattern="**" type="stdout"
64+
2019-08-21 00:30:38 +0000 [info]: adding source type="http"
65+
2019-08-21 00:30:38 +0000 [info]: #0 starting fluentd worker pid=13 ppid=6 worker=0
66+
2019-08-21 00:30:38 +0000 [info]: #0 fluentd worker is now running worker=0
67+
2019-08-21 00:30:38.332472611 +0000 fluent.info: {"worker":0,"message":"fluentd worker is now running worker=0"}
6668
```
6769

6870
## Step3: Post Sample Logs via HTTP
@@ -78,11 +80,12 @@ Use `docker ps` command to retrieve container ID, and use `docker logs`
7880
command to check the specific container's log.
7981

8082
``` {.CodeRay}
81-
$ docker ps
82-
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
83-
b495e527850c fluent/fluentd "/bin/sh -c 'exec ..." 2 hours ago Up 2 hours 5140/tcp, 24224/tcp, 0.0.0.0:9880->9880/tcp awesome_mcnulty
84-
$ docker logs b495e527850c | tail -n 1
85-
2017-01-30 14:04:37 +0000 sample.test: {"json":"message"}
83+
$ docker ps -a
84+
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
85+
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
86+
87+
$ docker logs 775a8e192f2b | tail -n 1
88+
2019-08-21 00:33:00.570707843 +0000 sample.test: {"json":"message"}
8689
```
8790

8891
## Next Steps

0 commit comments

Comments
 (0)