docker: refactored getDockerCluster.