TritonDataCenter / sdc-docker

Docker Engine for Triton
Mozilla Public License 2.0
182 stars 49 forks source link

fluentd-async-connect support #116

Open benjamin-bergia opened 7 years ago

benjamin-bergia commented 7 years ago

Apparently the fluentd-async-connect option is not supported on the version that I am running (docker release-20161124-20161123T224055Z-g2c4c350) is it available on newer versions or is there any plan to implement it in the future ?

This option is very useful when bootstraping new environments.

sgohl commented 7 years ago

Does not work with

Docker version 17.06.0-ce-rc4, build 29fcd5d

either:

# docker run -d --log-driver=fluentd --log-opt="fluentd-address=localhost:24224" 
--log-opt="fluentd-async-connect"  nginx
8cd56b8003bad9592a8f044f4992e137382bedfbe8c5a4450bbc66f26d8f9850
docker: Error response from daemon: failed to initialize logging driver: 
dial tcp [::1]:24224: getsockopt: connection refused.

in contrast to the docs who say:

If container cannot connect to the Fluentd daemon, the container stops immediately unless the fluentd-async-connect option is used.
hassanfarid commented 4 years ago

Try passing option like below:

docker run --rm --log-driver=fluentd --log-opt fluentd-async-connect=true <image> ls -lah

Reference: https://forums.docker.com/t/aggregate-container-logs-with-fluentd-running-in-a-container/9122