From 0886b9cbe53af5169216f0c0dc584e7abe67cf92 Mon Sep 17 00:00:00 2001 From: Michael Crosby Date: Mon, 1 Sep 2014 15:18:30 -0700 Subject: [PATCH] Update mount struct with reference Signed-off-by: Michael Crosby Upstream-commit: 688741df31396ece5f72cbc5ecc0250b3d06a8bc Component: engine --- components/engine/daemon/execdriver/native/create.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/engine/daemon/execdriver/native/create.go b/components/engine/daemon/execdriver/native/create.go index 8a13f23862..8f40407c06 100644 --- a/components/engine/daemon/execdriver/native/create.go +++ b/components/engine/daemon/execdriver/native/create.go @@ -161,7 +161,7 @@ func (d *driver) setupCgroups(container *libcontainer.Config, c *execdriver.Comm func (d *driver) setupMounts(container *libcontainer.Config, c *execdriver.Command) error { for _, m := range c.Mounts { - container.MountConfig.Mounts = append(container.MountConfig.Mounts, mount.Mount{ + container.MountConfig.Mounts = append(container.MountConfig.Mounts, &mount.Mount{ Type: "bind", Source: m.Source, Destination: m.Destination,