搜索镜像
> docker search activemq
INDEX NAME DESCRIPTION STARS OFFICIAL AUTOMATED
docker.io docker.io/webcenter/activemq ActiveMQ 5.14.3 with OpenJDK-jre-8-headles... 124 [OK]
docker.io docker.io/rmohr/activemq Various versions of ActiveMQ neatly packet... 46 [OK]
docker.io docker.io/vromero/activemq-artemis ActiveMQ Artemis image (Debian and Alpine ... 12 [OK]
docker.io docker.io/aterreno/activemq-dockerfile 3 [OK]
docker.io docker.io/cloudesire/activemq Latest activemq 3 [OK]
docker.io docker.io/elsammons/centos-activemq-artemis Will create a centos image running Apache ... 3 [OK]
docker.io docker.io/andreptb/activemq Debian Jessie based image with ActiveMQ in... 2 [OK]
docker.io docker.io/kdomanski/activemq Apache ActiveMQ 2 [OK]
docker.io docker.io/antonw/activemq-jmx ActiveMQ with (remote) JMX 1 [OK]
docker.io docker.io/ddmlu/activemq-openshift Fork of ayannah/activemq for openShift 1 [OK]
docker.io docker.io/jtech/activemq Latest ActiveMQ production distribution on... 1 [OK]
docker.io docker.io/njmittet/alpine-activemq Docker image for running Apache ActiveMQ. ... 1 [OK]
docker.io docker.io/woahbase/alpine-activemq Apache ActiveMQ built on Alpine Linux + Op... 1
docker.io docker.io/albertonavarro/activemq12s 0
docker.io docker.io/aungzy/activemq Docker image for ActiveMQ, forked from htt... 0 [OK]
docker.io docker.io/ayannah/activemq Dockerized ActiveMQ 0 [OK]
docker.io docker.io/beeyond/activemq ActiveMQ MySQL 0
docker.io docker.io/camptocamp/activemq-mcollective Activemq image for mcollective 0 [OK]
docker.io docker.io/duffqiu/activemq-edge 0 [OK]
docker.io docker.io/duffqiu/activemq-hub 0 [OK]
docker.io docker.io/expertsystems/activemq ActiveMQ 0 [OK]
docker.io docker.io/javierprovecho/docker-activemq Docker image for Apache ActiveMQ (AMQ) (v5... 0 [OK]
docker.io docker.io/joakimgreenbird/activemq-bridge Bridge from kafka to activemq. 0
docker.io docker.io/maxird/activemq ActiveMQ 0 [OK]
docker.io docker.io/mrlambert/activemq ActiveMq 5.12.0 Image with apache and supe... 0
拉取镜像
我们选择第一个镜像,拉取
> docker pull docker.io/webcenter/activemq
查看镜像
> docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
docker.io/webcenter/activemq latest 3af156432993 16 months ago 422 MB
创建并运行容器
> docker run -d --name acticemq_ian -p 61616:61616 -p 8161:8161 --restart=always docker.io/webcenter/activemq:latest
4ad970e1f259df48065cafb6ccc0b36cdb84155012d8391eae708b1f440a8e20
查看容器
> docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
4ad970e1f259 docker.io/webcenter/activemq:latest "/app/run.sh" 8 seconds ago Up 6 seconds 1883/tcp, 5672/tcp, 0.0.0.0:8161->8161/tcp, 61613-61614/tcp, 0.0.0.0:61616->61616/tcp acticemq_ian
以上!