Jelajahi Sumber

Update mount struct with reference

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
Michael Crosby 10 tahun lalu
induk
melakukan
688741df31
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      daemon/execdriver/native/create.go

+ 1 - 1
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,