Do not pass container information when creating a volume

Upstream-commit: ddb27268c98941b9f8a131b7b5403eb4d44beebb
Component: engine
This commit is contained in:
Michael Crosby
2013-11-08 16:11:57 -08:00
parent 22263cd931
commit 911620a74d

View File

@ -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
}