An example dockerfile which has an ActiveMQ server running in it.
docker build --rm -t activemq515:0.0.1 .
docker run --rm -p 8161:8161 -p 61616:61616 -p 1099:1099 activemq515:0.0.1
docker exec -i -t <CONTAINER_NAME> /bin/bash
Should be at http://localhost:8161
admin, admin
- localhost:1099
- user: admin
- pass: activemq
If you're on windows, sometimes docker network isn't setup properly. Try 'docker inspect <CONTAINER_NAME>'
Then look at the network gateway I.P. address and replace 'localhost' with that IP.