Merge pull request #5016 from hashicorp/dani/b-docker-delete-task-on-destroy
docker: Delete Task on Destroy
This commit is contained in:
commit
0cb8450659
|
@ -1019,6 +1019,7 @@ func (d *Driver) DestroyTask(taskID string, force bool) error {
|
|||
}
|
||||
|
||||
defer h.dloggerPluginClient.Kill()
|
||||
|
||||
if err := h.client.StopContainer(h.containerID, 0); err != nil {
|
||||
h.logger.Warn("failed to stop container during destroy", "error", err)
|
||||
}
|
||||
|
@ -1033,6 +1034,7 @@ func (d *Driver) DestroyTask(taskID string, force bool) error {
|
|||
"error", err)
|
||||
}
|
||||
|
||||
d.tasks.Delete(taskID)
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue