Merge pull request #1654 from aaron-prindle/precreate-none

Added checking for docker on the path in the precreate check for none…
pull/1614/merge
Aaron Prindle 2017-06-27 15:10:15 -07:00 committed by GitHub
commit fc40d7d8b7
1 changed files with 8 additions and 1 deletions

View File

@ -46,8 +46,15 @@ func NewDriver(hostName, storePath string) *Driver {
}
}
// PreCreateCheck checks that VBoxManage exists and works
// PreCreateCheck checks for correct priviledges and dependencies
func (d *Driver) PreCreateCheck() error {
// check that docker is on path
_, err := exec.LookPath("docker")
if err != nil {
return errors.Wrap(err, "docker cannot be found on the path for this machine. "+
"A docker installation is a requirement for using the none driver")
}
return nil
}