Skip to content

Commit

Permalink
Add logdrivers to executor from swarmkit
Browse files Browse the repository at this point in the history
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
  • Loading branch information
tonistiigi committed Jul 8, 2016
1 parent 6586f4f commit 8a50315
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion daemon/cluster/executor/container/container.go
Original file line number Diff line number Diff line change
Expand Up @@ -266,11 +266,20 @@ func getMountMask(m *api.Mount) string {
}

func (c *containerConfig) hostConfig() *enginecontainer.HostConfig {
return &enginecontainer.HostConfig{
hc := &enginecontainer.HostConfig{
Resources: c.resources(),
Binds: c.binds(),
Tmpfs: c.tmpfs(),
}

if c.task.LogDriver != nil {
hc.LogConfig = enginecontainer.LogConfig{
Type: c.task.LogDriver.Name,
Config: c.task.LogDriver.Options,
}
}

return hc
}

// This handles the case of volumes that are defined inside a service Mount
Expand Down

0 comments on commit 8a50315

Please sign in to comment.