From ddb27268c98941b9f8a131b7b5403eb4d44beebb Mon Sep 17 00:00:00 2001 From: Michael Crosby Date: Fri, 8 Nov 2013 16:11:57 -0800 Subject: [PATCH] Do not pass container information when creating a volume --- container.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/container.go b/container.go index f388a18e2f..bac5bdd14a 100644 --- a/container.go +++ b/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 }