Move method to a DockerClient class