Skip to content

Commit c11e1bc

Browse files
calvnarekkas
authored andcommitted
Removes d.Client.RemoveContainer in Purge method (#120)
1 parent 30c2496 commit c11e1bc

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

dockertest.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -255,10 +255,6 @@ func (d *Pool) Run(repository, tag string, env []string) (*Resource, error) {
255255

256256
// Purge removes a container and linked volumes from docker.
257257
func (d *Pool) Purge(r *Resource) error {
258-
if err := d.Client.KillContainer(dc.KillContainerOptions{ID: r.Container.ID}); err != nil {
259-
return errors.Wrap(err, "")
260-
}
261-
262258
if err := d.Client.RemoveContainer(dc.RemoveContainerOptions{ID: r.Container.ID, Force: true, RemoveVolumes: true}); err != nil {
263259
return errors.Wrap(err, "")
264260
}

0 commit comments

Comments
 (0)