Revert "Fix check for whether docker is installed" we need to revisit

This reverts commit ddc0c50b91.

Signed-off-by: Evan Hazlett <ejhazlett@gmail.com>
This commit is contained in:
Evan Hazlett 2015-03-04 13:17:00 -08:00
parent 66664f8b25
commit 8b6ccddd80
No known key found for this signature in database
GPG Key ID: A519480096146526
1 changed files with 7 additions and 1 deletions

View File

@ -401,9 +401,15 @@ func (h *Host) Create(name string) 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
// just install it using the docker repos
cmd, err := h.Driver.GetSSHCommand("command -v docker || curl -sSL https://get.docker.com | sh -;")
cmd, err := h.Driver.GetSSHCommand("if [ ! -e /usr/bin/docker ]; then curl -sSL https://get.docker.com | sh -; fi")
if err != nil {
return err
}