builder/docker: say when killing the container
This commit is contained in:
parent
47040b5aef
commit
f1de5dbcac
|
@ -44,10 +44,13 @@ func (s *StepRun) Cleanup(state multistep.StateBag) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
driver := state.Get("driver").(Driver)
|
||||||
|
ui := state.Get("ui").(packer.Ui)
|
||||||
|
|
||||||
// Kill the container. We don't handle errors because errors usually
|
// Kill the container. We don't handle errors because errors usually
|
||||||
// just mean that the container doesn't exist anymore, which isn't a
|
// just mean that the container doesn't exist anymore, which isn't a
|
||||||
// big deal.
|
// big deal.
|
||||||
driver := state.Get("driver").(Driver)
|
ui.Say(fmt.Sprintf("Killing the container: %s", s.containerId))
|
||||||
driver.StopContainer(s.containerId)
|
driver.StopContainer(s.containerId)
|
||||||
|
|
||||||
// Reset the container ID so that we're idempotent
|
// Reset the container ID so that we're idempotent
|
||||||
|
|
Loading…
Reference in New Issue