I don’t know if it’s deliberate or a typo, but you have mapped port 55554 on the localhost to port 55555 on the broker. The default port is 55555, so you are getting connection refused because there is no listener on port 55555 on localhost.
You have two choices:
- If it is a typo, fix the docker startup to use ‘-p 55555:55555’
- If it is deliberate, then change your broker_props:
“solace.messaging.transport.host”: os.environ.get(‘SOLACE_HOST’) or “localhost:55554”
2b. Alternatively, if you are using the environment variable SOLACE_HOST be sure it has the port number 55554 included.