Fix option validation for log-drivers without it
There is no option validation for "journald" log-driver, so it makes no sense to fail in that case. Signed-off-by: Alexander Morozov <lk4d4@docker.com> Upstream-commit: d68c55bc72625bce226971ef6e760530e9a15ce3 Component: engine
This commit is contained in:
@ -115,5 +115,5 @@ func ValidateLogOpts(name string, cfg map[string]string) error {
|
||||
if l != nil {
|
||||
return l(cfg)
|
||||
}
|
||||
return fmt.Errorf("Log Opts are not valid for [%s] driver", name)
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user