diff --git a/build.rb b/build.rb
index <HASH>..<HASH> 100755
--- a/build.rb
+++ b/build.rb
@@ -36,6 +36,9 @@ end
 params["platform"] = "java" unless params["platform"] 
 params["couch"] = "couchdb1.6" unless params["couch"]
 
+#kill any docker container that may be running on the machine.
+#we don't want to effected by another failing build
+system("docker rm --force couchdb")
 
 #launch docker
 puts "Starting docker container #{$couch}"
Kill and remove any running docker container

Kill and remove any running docker container during the start of the build

process, making sure we are not effected by an error in another build.

This is mostly to combat network issues with the slaves dropping offline.