Sebastiaan van Stijn
fd33e0d933
Update daemon.json example to show that log-opts must be a string
...
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 13:26:08 +01:00
..
2017-10-05 01:14:31 +08:00
2018-10-05 19:56:32 +09:00
2018-06-25 14:47:16 +02:00
2017-10-05 01:14:31 +08:00
2018-01-02 19:40:23 +01:00
2017-10-05 01:14:31 +08:00
2017-10-05 01:14:31 +08:00
2018-09-12 17:37:44 +02:00
2018-07-19 14:55:48 +02:00
2017-10-05 01:14:31 +08:00
2018-11-21 13:26:08 +01:00
2018-04-29 14:52:08 +02:00
2017-12-06 17:24:01 +01:00
2018-05-16 20:16:08 +08:00
2018-07-05 14:12:47 -07:00
2018-01-30 11:29:45 -08:00
2017-10-05 01:14:31 +08:00
2017-10-05 01:14:31 +08:00
2018-09-13 15:04:04 -07:00
2018-02-08 15:33:07 +09:00
2017-10-05 01:14:31 +08:00
2017-10-31 15:21:51 +05:00
2018-02-20 14:58:55 +01:00
2018-04-16 16:39:54 +02:00
2018-10-04 11:14:17 +02:00
2018-10-04 11:14:17 +02:00
2018-05-16 20:16:08 +08:00
2018-04-24 15:00:39 +02:00
2018-05-16 20:16:08 +08:00
2018-01-30 15:41:53 -08:00
2017-10-05 01:14:31 +08:00
2017-10-31 15:21:51 +05:00
2017-10-05 01:14:31 +08:00
2018-01-02 19:40:23 +01:00
2017-10-05 01:14:31 +08:00
2017-10-05 01:14:31 +08:00
2017-10-05 01:14:31 +08:00
2017-10-05 01:14:31 +08:00
2018-02-17 02:58:05 +01:00
2017-10-05 01:14:31 +08:00
2017-10-05 01:14:31 +08:00
2017-10-05 01:14:31 +08:00
2017-10-05 01:14:31 +08:00
2017-10-05 01:14:31 +08:00
2017-10-05 01:14:31 +08:00
2017-10-05 01:14:31 +08:00
2017-10-05 01:14:31 +08:00
2017-10-05 01:14:31 +08:00
2017-10-05 01:14:31 +08:00
2017-10-05 01:14:31 +08:00
2017-10-05 01:14:31 +08:00
2017-10-05 01:14:31 +08:00
2017-10-05 01:14:31 +08:00
2017-10-05 01:14:31 +08:00
2017-10-05 01:14:31 +08:00
2017-10-05 01:14:31 +08:00
2017-10-05 01:14:31 +08:00
2017-10-05 01:14:31 +08:00
2017-10-05 01:14:31 +08:00
2017-10-05 01:14:31 +08:00
2017-10-05 01:14:31 +08:00
2017-10-05 01:14:31 +08:00
2017-10-05 01:14:31 +08:00
2018-10-13 12:59:56 -04:00
2018-09-28 17:40:22 -04:00
2017-10-05 01:14:31 +08:00
2017-10-05 01:14:31 +08:00
2018-04-02 15:15:19 -07:00
2017-10-05 01:14:31 +08:00
2017-10-05 01:14:31 +08:00
2017-10-05 01:14:31 +08:00
2017-10-05 01:14:31 +08:00
2018-09-27 18:47:20 +03:00
2017-10-05 01:14:31 +08:00
2017-10-05 01:14:31 +08:00
2017-10-05 01:14:31 +08:00
2017-10-05 01:14:31 +08:00
2017-10-05 01:14:31 +08:00
2017-10-05 01:14:31 +08:00
2017-10-05 01:14:31 +08:00
2018-06-14 13:50:12 +02:00
2017-10-05 01:14:31 +08:00
2018-07-19 14:55:48 +02:00
2018-06-21 23:16:27 -07:00
2018-06-21 23:16:27 -07:00
2018-06-21 23:16:27 -07:00
2018-06-21 23:16:27 -07:00
2018-06-21 23:16:27 -07:00
2017-10-05 01:14:31 +08:00
2018-05-08 22:16:15 +03:00
2017-10-05 01:14:31 +08:00
2018-01-31 16:51:43 -08:00
2018-08-21 14:34:00 -04:00
2017-10-05 01:14:31 +08:00
2017-10-05 01:14:31 +08:00
2017-10-05 01:14:31 +08:00
2017-10-05 01:14:31 +08:00
2017-10-05 01:14:31 +08:00
2017-10-05 01:14:31 +08:00
2017-10-05 01:14:31 +08:00
2017-10-05 01:14:31 +08:00
2017-10-05 01:14:31 +08:00
2017-10-20 10:51:28 -07:00
2017-10-05 01:14:31 +08:00
2017-10-05 01:14:31 +08:00
2017-10-05 01:14:31 +08:00
2018-08-19 17:57:04 -07:00
2018-03-13 16:50:56 -07:00
2018-03-13 16:50:56 -07:00
2018-03-13 16:50:56 -07:00
2018-03-13 16:50:56 -07:00
2018-03-13 16:50:56 -07:00
2018-03-13 16:50:56 -07:00
2017-10-26 23:55:03 -07:00
2017-10-05 01:14:31 +08:00
2018-06-21 23:33:55 -07:00
2017-10-05 01:14:31 +08:00
2017-10-05 01:14:31 +08:00
2017-10-05 01:14:31 +08:00
2018-02-08 15:33:07 +09:00
2017-10-05 01:14:31 +08:00
2018-02-08 15:33:07 +09:00
2017-10-05 01:14:31 +08:00