emqxarchive / emqx-docker

This repository is no longer maintained, please go to https://github.com/emqx/emqx-rel/tree/master/deploy/docker
Apache License 2.0
235 stars 162 forks source link

How do I check status of emqx server when use docker ? #72

Open bigboxthailand opened 6 years ago

bigboxthailand commented 6 years ago

Docker version

18.06.1

System

Raspbian

Hardware

Raspberry pi 3b+

I am newbie , now I can start and stop and pub sub the message but I don't know how to check status like ./bin/emqx_ctl status ?

terry-xiaoyu commented 6 years ago

Attach into the docker container:

docker exec -it <your-docker-id> ash
./bin/emqx_ctl status

The launch script start.sh will automatically check the status of emqx, and the docker container would be stopped if it died.

bigboxthailand commented 6 years ago

@terry-xiaoyu Does it restart automatically ?

terry-xiaoyu commented 6 years ago

No, it doesn't. You should use the restart policy of the docker container.