1、准备工作
docker pull webcenter/activemq:5.14.3
Pwd="/data/software/activemq"
mkdir ${Pwd}/data -p
2、运行容器
docker run -d --name activemq \
-p 61616:61616 \
-p 8161:8161 \
-v ${Pwd}/data:/opt/activemq/data \
-v /etc/localtime:/etc/localtime \
--restart=always \
webcenter/activemq:5.14.3
3、验证ActiveMQ
浏览器访问:IP:8161
默认密码是admin