docker/docker — pull request #9249 by tonistiigi (2014-11-19 21:30:03+00:00)
Title: Make sure integration-cli tests clean up

Common patterns:
- Multiple images were built with same name but only one cleanup.
- Containers were deleted after images.
- Images not removed after retagging.
- deleteImages() did not work for deleting many images together.

Signed-off-by: Tõnis Tiigi (github: tonistiigi)

This will become more important when there is progress with #9217 . Even at the moment where `integration-cli` is ran inside temporary container this can easily result false positives when one test leaks information to another. Currently there are many tests that do not pass if ran for a second time in same environment.