Nvmsgbroker connection fails in Docker container

do you mean using test_amqp_proto can send messages successfully?
as you know, nvmsgbroker plugin also uses libnvds_amqp_proto.so to send messages. nvmsgbroker is opensource. can you debug nvmsgbroker to narrow down this issue? especially, please check if nvds_msgapi_connect’s parameter is correct.