Skip to content

docker-compose integration tests not cleaning up on failures #5948

@anchal-agrawal

Description

@anchal-agrawal

Seen in build https://ci.vcna.io/vmware/vic/12992:

screen shot 2017-08-07 at 23 14 21

The Compose Up with link test failed before getting to the docker-compose down step, thereby leaving orphan containers connected to the vic_default network, which caused subsequent docker-compose down commands to fail with

...
Removing network vic_default
vic_default has active endpoints

Proposed solutions:

  • docker-compose integration test suites use a Test Teardown Run Keyword If Test Failed step to clean up orphan containers if a test fails before the cleanup step (docker-compose down).
  • See if there's a docker-compose command option to make orphan containers attached to networks non-fatal for docker-compose down.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions