ConnectionRefusedError: [Errno 111] Connection refused error while running rally for an existing elastic cluster

Hi @Quentin_Pradet ,

I was able to figure out on how to use the exact rally command for Elasticsearch container from outside.

esrally race --track=pmc --pipeline=benchmark-only --target-hosts=192.168.105.116:9200 --client-options="timeout:60,use_ssl:true,verify_certs:true,ca_certs:'/home/administrator/ca.crt',basic_auth_user:'elastic',basic_auth_password:'xxxxx

administrator@administrator:~$ curl --insecure https://elastic:xxxxx@192.168.105.116:9200/
{
"name" : "quickstart-es-master-0",
"cluster_name" : "quickstart",
"cluster_uuid" : "wmaV7NUORjCDIfmIRaE4rw",
"version" : {
"number" : "8.8.0",
"build_flavor" : "default",
"build_type" : "docker",
"build_hash" : "c01029875a091076ed42cdb3a41c10b1a9a5a20f",
"build_date" : "2023-05-23T17:16:07.179039820Z",
"build_snapshot" : false,
"lucene_version" : "9.6.0",
"minimum_wire_compatibility_version" : "7.17.0",
"minimum_index_compatibility_version" : "7.0.0"
},
"tagline" : "You Know, for Search"
}

Currently I am facing a different issue now with SSL Verification of esrally for rally-tracks.elastic.co', can you please have a look at this post ( Max retries exceeded with url: /pmc/documents.json.bz2 SSLCertVerificationError [SSL: CERTIFICATE_VERIFY_FAILED] - Elastic Stack / Elasticsearch - Discuss the Elastic Stack)