docker 安装activemq

拷贝配置文件到本地

docker run --name activemq -d -p 61617:61616 -p 8162:8161 docker.io/webcenter/activemq

docker cp activemq:/opt/activemq/conf /usr/local/soft/activemq

docker stop activemq
docker rm activemq

启动

docker run \
--name activemq -d \
-v /usr/local/soft/activemq/conf:/opt/activemq/conf \
-v /etc/localtime:/etc/localtime \
-p 61617:61616 -p 8162:8161 \
docker.io/webcenter/activemq

访问地址:http://127.0.0.1:8162

默认账号admin

密码admin

你可能感兴趣的:(docker,activemq)