ignore vfs from warning

Docker-DCO-1.1-Signed-off-by: Jessica Frazelle <jess@docker.com> (github: jfrazelle)
This commit is contained in:
Jessica Frazelle 2015-01-14 17:28:50 -08:00
parent 640e0fc578
commit f88066fd43

View file

@ -148,7 +148,7 @@ func New(root string, options []string) (driver Driver, err error) {
func checkPriorDriver(name, root string) {
priorDrivers := []string{}
for prior := range drivers {
if prior != name {
if prior != name && prior != "vfs" {
if _, err := os.Stat(path.Join(root, prior)); err == nil {
priorDrivers = append(priorDrivers, prior)
}