Public | Automated Build

Last pushed: 2 years ago
Short Description
Short description is empty for this repo.
Full Description

fluentd-docker

Base docker image to run fluentd (td-agent2), which runs on centos6

Usage

To create the image takumakanari/fluentd-docker, execute the following command on the fluentd-docker directory:

docker build -t takumakanari/fluentd-docker .

Then run the image and execute python:

docker run -d -p 24224:24224 takumakanari/fluentd-docker

Environments

If you want to specify custom option into td-agent command, you can set FLUENTD_OPTS environment like as follows:

docker run -d -p 24224:24224 -e FLUENTD_OPTS="--verbose" takumakanari/fluentd-docker

Mounting the configuration file volume

In order to use custom configuration file for td-agent, you can mount a local directory from the host on the container. To do so:

docker run -d -p 24224:24224 -v "/path/in/host:/etc/td-agent" takumakanari/fluentd-docker

/path/in/host/td-agent.conf will be used for td-agent in this case.

Docker Pull Command
Owner
takumakanari
Source Repository