From 82cbb15ff4e8d6472faa3201149b2478a94e2f0f Mon Sep 17 00:00:00 2001 From: Tonis Tiigi Date: Tue, 9 Aug 2016 11:50:20 -0700 Subject: [PATCH] Update executor fixes from swarmkit Signed-off-by: Tonis Tiigi --- daemon/cluster/executor/container/container.go | 1 + daemon/cluster/executor/container/controller.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/daemon/cluster/executor/container/container.go b/daemon/cluster/executor/container/container.go index 19e23558ec..78bedb998e 100644 --- a/daemon/cluster/executor/container/container.go +++ b/daemon/cluster/executor/container/container.go @@ -276,6 +276,7 @@ func (c *containerConfig) hostConfig() *enginecontainer.HostConfig { Resources: c.resources(), Binds: c.binds(), Tmpfs: c.tmpfs(), + GroupAdd: c.spec().Groups, } if c.task.LogDriver != nil { diff --git a/daemon/cluster/executor/container/controller.go b/daemon/cluster/executor/container/controller.go index 5f865aae4c..11e8059118 100644 --- a/daemon/cluster/executor/container/controller.go +++ b/daemon/cluster/executor/container/controller.go @@ -33,7 +33,7 @@ type controller struct { var _ exec.Controller = &controller{} -// NewController returns a dockerexec runner for the provided task. +// NewController returns a docker exec runner for the provided task. func newController(b executorpkg.Backend, task *api.Task) (*controller, error) { adapter, err := newContainerAdapter(b, task) if err != nil {