Skip to content

Commit

Permalink
clean code
Browse files Browse the repository at this point in the history
  • Loading branch information
jazzyfresh committed Jul 2, 2019
1 parent 2f045be commit cc05a28
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions drivers/docker/driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -743,9 +743,10 @@ func (d *Driver) createContainerConfig(task *drivers.TaskConfig, driverConfig *T
if hostConfig.LogConfig.Type == "" && hostConfig.LogConfig.Config == nil {
logger.Trace("no docker log driver provided, defaulting to json-file")
hostConfig.LogConfig.Type = "json-file"
hostConfig.LogConfig.Config = make(map[string]string)
hostConfig.LogConfig.Config["max-file"] = "2"
hostConfig.LogConfig.Config["max-size"] = "2m"
hostConfig.LogConfig.Config = map[string]string{
"max-file": "2",
"max-size": "2m",
}
}

logger.Debug("configured resources", "memory", hostConfig.Memory,
Expand Down

0 comments on commit cc05a28

Please sign in to comment.