From c04d1cd57e451f78ef0fc35da2d443f3a9301594 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sat, 9 Nov 2013 19:17:27 -0800 Subject: [PATCH] builder/docker: say when killing the container --- builder/docker/step_run.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/builder/docker/step_run.go b/builder/docker/step_run.go index 27dfeb8d5..7b3c131b0 100644 --- a/builder/docker/step_run.go +++ b/builder/docker/step_run.go @@ -44,10 +44,13 @@ func (s *StepRun) Cleanup(state multistep.StateBag) { return } + driver := state.Get("driver").(Driver) + ui := state.Get("ui").(packer.Ui) + // Kill the container. We don't handle errors because errors usually // just mean that the container doesn't exist anymore, which isn't a // big deal. - driver := state.Get("driver").(Driver) + ui.Say(fmt.Sprintf("Killing the container: %s", s.containerId)) driver.StopContainer(s.containerId) // Reset the container ID so that we're idempotent