Fix check for whether docker is installed

Signed-off-by: Nathan LeClaire <nathan.leclaire@gmail.com>
This commit is contained in:
Nathan LeClaire 2015-03-04 11:34:48 -08:00
parent 6da2128e23
commit ddc0c50b91
1 changed files with 1 additions and 7 deletions

View File

@ -401,15 +401,9 @@ func (h *Host) Create(name string) error {
} }
func (h *Host) Provision() error { func (h *Host) Provision() error {
// "local" providers use b2d; no provisioning necessary
switch h.Driver.DriverName() {
case "none", "virtualbox", "vmwarefusion", "vmwarevsphere":
return nil
}
// install docker - until cloudinit we use ubuntu everywhere so we // install docker - until cloudinit we use ubuntu everywhere so we
// just install it using the docker repos // just install it using the docker repos
cmd, err := h.Driver.GetSSHCommand("if [ ! -e /usr/bin/docker ]; then curl -sSL https://get.docker.com | sh -; fi") cmd, err := h.Driver.GetSSHCommand("command -v docker || curl -sSL https://get.docker.com | sh -;")
if err != nil { if err != nil {
return err return err
} }