{ "data-root": "/mnt/docker-data", "storage-driver": "overlay" }
{ "dns": ["8.8.8.8", "8.8.4.4"] }
json-file的日志格式为JSON,Docker的默认日志记录驱动程序。
{ "registry-mirrors": [ "https://<id>.mirror.aliyuncs.com" ], "insecure-registries": [ "0.0.0.0/0" ], "log-driver": "json-file", "log-opts": { "max-size": "10m", "max-file": "3", "labels": "production_status", "env": "os,customer" } }
Fluentd日志驱动程序:
{ "log-driver": "fluentd", "log-opts": { "fluentd-address": "fluentdhost:24224" } }