mirror of https://github.com/docker/docs.git
Merge pull request #713 from ehazlett/revert-709
Revert "Fix check for whether docker is installed"
This commit is contained in:
commit
71533dd10f
8
host.go
8
host.go
|
|
@ -401,9 +401,15 @@ 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("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 {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue