Merge pull request #3283 from haircommander/logging-play-kube-hotfix

Set a default log driver if none is specified
This commit is contained in:
OpenShift Merge Robot 2019-06-10 20:19:33 +02:00 committed by GitHub
commit a89d013b12
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -320,7 +320,9 @@ func (c *CreateConfig) getContainerCreateOptions(runtime *libpod.Runtime, pod *l
options = append(options, libpod.WithLogPath(logPath)) options = append(options, libpod.WithLogPath(logPath))
} }
if c.LogDriver != "" {
options = append(options, libpod.WithLogDriver(c.LogDriver)) options = append(options, libpod.WithLogDriver(c.LogDriver))
}
if c.IPAddress != "" { if c.IPAddress != "" {
ip := net.ParseIP(c.IPAddress) ip := net.ParseIP(c.IPAddress)