Skip to content

Commit

Permalink
Added checking for docker on the path in the precreate check for none…
Browse files Browse the repository at this point in the history
… driver
  • Loading branch information
aaron-prindle committed Jun 26, 2017
1 parent 40b0533 commit cb8d3c0
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion pkg/minikube/machine/drivers/none/none.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit cb8d3c0

Please sign in to comment.