From bedab491ac1a262570f5a56996ea97d85a7df4f6 Mon Sep 17 00:00:00 2001 From: Cyril Tovena Date: Thu, 4 Jun 2020 09:09:41 -0400 Subject: [PATCH] Allows to change the log driver mode and buffer size. (#2116) Before those configs where not allowed, but docker can use them to have a different log delivery behaviour. see https://docs.docker.com/config/containers/logging/configure/#configure-the-delivery-mode-of-log-messages-from-container-to-log-driver Potentially fixes #2017 Signed-off-by: Cyril Tovena --- cmd/docker-driver/config.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/docker-driver/config.go b/cmd/docker-driver/config.go index f00d8e63657f2..1fcf584d3fe5c 100644 --- a/cmd/docker-driver/config.go +++ b/cmd/docker-driver/config.go @@ -113,6 +113,8 @@ func validateDriverOpt(loggerInfo logger.Info) error { case "env-regex": case "max-size": case "max-file": + case "mode": + case "max-buffer-size": default: return fmt.Errorf("%s: wrong log-opt: '%s' - %s", driverName, opt, loggerInfo.ContainerID) }