浏览代码

Do not pass container information when creating a volume

Michael Crosby 11 年之前
父节点
当前提交
ddb27268c9
共有 1 个文件被更改,包括 5 次插入1 次删除
  1. 5 1
      container.go

+ 5 - 1
container.go

@@ -804,7 +804,11 @@ func (container *Container) Start() (err error) {
 			}
 			// Otherwise create an directory in $ROOT/volumes/ and use that
 		} else {
-			c, err := container.runtime.volumes.Create(nil, container, "", "", nil)
+
+			// Do not pass a container as the parameter for the volume creation.
+			// The graph driver using the container's information ( Image ) to
+			// create the parent.
+			c, err := container.runtime.volumes.Create(nil, nil, "", "", nil)
 			if err != nil {
 				return err
 			}