Commit c04d1cd5 authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

builder/docker: say when killing the container

parent d8b29cd6
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment