diff --git a/volume/store/store.go b/volume/store/store.go index 041c1346bb..8e023df45b 100644 --- a/volume/store/store.go +++ b/volume/store/store.go @@ -194,12 +194,14 @@ func (s *VolumeStore) create(name, driverName string, opts map[string]string) (v } } - logrus.Debugf("Registering new volume reference: driver %q, name %q", driverName, name) vd, err := volumedrivers.GetDriver(driverName) + if err != nil { return nil, &OpErr{Op: "create", Name: name, Err: err} } + logrus.Debugf("Registering new volume reference: driver %q, name %q", vd.Name(), name) + if v, _ := vd.Get(name); v != nil { return v, nil }