@@ -29,7 +29,7 @@ The `docker logs` command is not available for this logging driver.
29
29
30
30
Some options are supported by specifying ` --log-opt ` as many times as needed:
31
31
32
- - ` fluentd-address ` : specify ` host:port ` to connect ` localhost :24224`
32
+ - ` fluentd-address ` : specify a socket address to connect to the Fluentd daemon, ex ` fluentdhost :24224` or ` unix:///path/to/fluentd.sock `
33
33
- ` tag ` : specify tag for fluentd message, which interpret some markup, ex ` {{.ID}} ` , ` {{.FullID}} ` or ` {{.Name}} ` ` docker.{{.ID}} `
34
34
35
35
@@ -47,7 +47,7 @@ Before using this logging driver, launch a Fluentd daemon. The logging driver
47
47
connects to this daemon through ` localhost:24224 ` by default. Use the
48
48
` fluentd-address ` option to connect to a different address.
49
49
50
- docker run --log-driver=fluentd --log-opt fluentd-address=myhost.local :24224
50
+ docker run --log-driver=fluentd --log-opt fluentd-address=fluentdhost :24224
51
51
52
52
If container cannot connect to the Fluentd daemon, the container stops
53
53
immediately unless the ` fluentd-async-connect ` option is used.
@@ -59,9 +59,13 @@ Users can use the `--log-opt NAME=VALUE` flag to specify additional Fluentd logg
59
59
### fluentd-address
60
60
61
61
By default, the logging driver connects to ` localhost:24224 ` . Supply the
62
- ` fluentd-address ` option to connect to a different address.
62
+ ` fluentd-address ` option to connect to a different address. ` tcp ` (default) and ` unix ` sockets are supported.
63
+
64
+ docker run --log-driver=fluentd --log-opt fluentd-address=fluentdhost:24224
65
+ docker run --log-driver=fluentd --log-opt fluentd-address=tcp://fluentdhost:24224
66
+ docker run --log-driver=fluentd --log-opt fluentd-address=unix:///path/to/fluentd.sock
63
67
64
- docker run --log-driver=fluentd --log-opt fluentd- address=myhost.local:24224
68
+ Two of the above specify the same address, because ` tcp ` is default.
65
69
66
70
### tag
67
71
0 commit comments