How to run emqx_ctl for docker-compose-based EMQX setups

You can simply run emqx_ctl using the following command:

emqx_ctl_docker.sh
docker-compose exec emqx ./bin/emqx_ctl [command]

where emqx is the name of the container to run emqx_ctl in.

Example:

emqx_ctl_status_example.txt
docker-compose exec emqx ./bin/emqx_ctl status

 


Check out similar posts by category: EMQX, MQTT