docs/config/containers/logging
Sebastiaan van Stijn a967b6ccc9
Add note about log-opt options in daemon.json taking string values only
log-opts are passed to logging-drivers as-is, so the daemon is not
aware what value-type each option takes.

For this reason, all options must be provided as a string, even if
they are used as numeric values by the logging driver.

For example, to pass the "max-file" option to the default (json-file)
logging driver, this value has to be passed as a string;

```json
{
  "log-driver": "json-file",
  "log-opts": {
    "max-size": "10m",
    "max-file": "3"
  }
}
```

When passed as a _number_ (`"max-file": 3`), the daemon will invalidate
the configuration file, and fail to start;

    unable to configure the Docker daemon with file /etc/docker/daemon.json: json: cannot unmarshal number into Go value of type string

This patch adds an example to the daemon.json to show these  values
have to be passed as strings.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2018-11-21 14:55:36 +01:00
..
awslogs.md Clean up information architecture (#5893) 2018-02-01 15:25:43 -08:00
configure.md Add note about log-opt options in daemon.json taking string values only 2018-11-21 14:55:36 +01:00
etwlogs.md Clean up information architecture (#5893) 2018-02-01 15:25:43 -08:00
fluentd.md Add note about log-opt options in daemon.json taking string values only 2018-11-21 14:55:36 +01:00
gcplogs.md Clean up information architecture (#5893) 2018-02-01 15:25:43 -08:00
gelf.md Add note about log-opt options in daemon.json taking string values only 2018-11-21 14:55:36 +01:00
index.md fix nginx logs links 2018-06-15 14:51:45 -07:00
journald.md Fix typo in journald log options 2018-09-23 14:40:35 +02:00
json-file.md Add note about log-opt options in daemon.json taking string values only 2018-11-21 14:55:36 +01:00
log_tags.md Clean up information architecture (#5893) 2018-02-01 15:25:43 -08:00
logentries.md Clean up information architecture (#5893) 2018-02-01 15:25:43 -08:00
plugins.md Clean up information architecture (#5893) 2018-02-01 15:25:43 -08:00
splunk.md Add note about log-opt options in daemon.json taking string values only 2018-11-21 14:55:36 +01:00
syslog.md Add note about log-opt options in daemon.json taking string values only 2018-11-21 14:55:36 +01:00