Skip to content

Remove docker container if exists before run

Mitchell Nielsen requested to merge remove-container-if-exists into master

Removes the Docker container before the primary docker run command if the container exists.

Context: when tests are run from the same instance and not one test per ephemeral instance, we would see failures that the container already exists.

Note that this removes the container before the run rather than after the run in case any postmortem analysis needs to be done.

Related to omnibus-gitlab#5768 (moved)

Edited by Mitchell Nielsen

Merge request reports