docker官网
activeMQ没有官方镜像版本。需要使用第三方制作镜像
https://hub.docker.com/r/webcenter/activemq
基础镜像
拉取镜像
docker pull webcenter/activemq:5.14.3
备份镜像
docker save webcenter/activemq:5.14.3 -o webcenter.activemq:5.14.3.tar
导入镜像
docker load -i webcenter.activemq:5.14.3.tar
运行镜像
单机版
61616为ActiveMQ的外部访问端口, 8161为web页面访问端口
docker run -itd --name activmq --restart always -p 61616:61616 -p 8161:8161
webcenter/activemq:5.14.3
docker exec -it activmq /bin/bash
cat /etc/issue
返回信息:
Ubuntu 15.10 \n \l
测试容器
使用 ip:8161访问 ActiveMQ 管理界面 登录账号密码默认是admin/admin
http://192.168.25.129:8161/