mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
2653c7c16c
Signed-off-by: Arnaud Porterie <arnaud.porterie@docker.com>
15 lines
280 B
Go
15 lines
280 B
Go
// +build experimental
|
|
|
|
package daemon
|
|
|
|
import (
|
|
"github.com/docker/docker/volume"
|
|
"github.com/docker/docker/volume/drivers"
|
|
)
|
|
|
|
func getVolumeDriver(name string) (volume.Driver, error) {
|
|
if name == "" {
|
|
name = volume.DefaultDriverName
|
|
}
|
|
return volumedrivers.Lookup(name)
|
|
}
|