From 9bdefb5c593f5a6d0e53d3903c09228e739f9983 Mon Sep 17 00:00:00 2001 From: Adrian Guenter Date: Thu, 9 Jul 2015 02:40:23 -0400 Subject: [PATCH] Don't destroy built Docker image on reload --- plugins/providers/docker/action.rb | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/plugins/providers/docker/action.rb b/plugins/providers/docker/action.rb index b41d39810..7ce88d0ae 100644 --- a/plugins/providers/docker/action.rb +++ b/plugins/providers/docker/action.rb @@ -117,8 +117,12 @@ module VagrantPlugins b2.use Call, IsBuild do |env2, b3| if env2[:result] - b3.use EnvSet, force_confirm_destroy: true - b3.use action_destroy.flatten + b3.use ConfigValidate + b3.use EnvSet, force_halt: true + b3.use action_halt + b3.use HostMachineSyncFoldersDisable + b3.use Destroy + b3.use ProvisionerCleanup end end