[FIXED JENKINS-25745] Ensure DOCKER_CONTAINER_IDS contains unique IDs

[JENKINS-25745](https://issues.jenkins-ci.org/browse/JENKINS-25745)