docker: fixed race condition problem with dockerCluster.