From bad4c2103d4cd56bb3ef57c76fc58e1360762389 Mon Sep 17 00:00:00 2001 From: Seth Vargo Date: Thu, 19 Nov 2015 18:25:28 -0800 Subject: [PATCH] Only install Docker if it is not already installed --- plugins/provisioners/docker/installer.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/plugins/provisioners/docker/installer.rb b/plugins/provisioners/docker/installer.rb index da71ed1a5..3f2ae95ad 100644 --- a/plugins/provisioners/docker/installer.rb +++ b/plugins/provisioners/docker/installer.rb @@ -14,13 +14,13 @@ module VagrantPlugins return end - @machine.ui.detail(I18n.t("vagrant.docker_installing")) - @machine.guest.capability(:docker_install) + if !@machine.guest.capability(:docker_installed) + @machine.ui.detail(I18n.t("vagrant.docker_installing")) + @machine.guest.capability(:docker_install) + end if !@machine.guest.capability(:docker_installed) - if !@machine.guest.capability(:docker_installed) - raise DockerError, :install_failed - end + raise DockerError, :install_failed end if @machine.guest.capability?(:docker_configure_vagrant_user)