docker安装rabbitmq

1. docker查询

[root@localhost ~]# docker search rabbitmq
INDEX       NAME                                                  DESCRIPTION                                     STARS     OFFICIAL   AUTOMATED
docker.io   docker.io/rabbitmq                                    RabbitMQ is an open source multi-protocol ...   3929      [OK]       
docker.io   docker.io/tutum/rabbitmq                              Base docker image to run a RabbitMQ server      22                   
docker.io   docker.io/kbudde/rabbitmq-exporter                    rabbitmq_exporter for prometheus                17                   [OK]
docker.io   docker.io/frodenas/rabbitmq                           A Docker Image for RabbitMQ                     12                   [OK]
docker.io   docker.io/cyrilix/rabbitmq-mqtt                       RabbitMQ MQTT Adapter                           9                    [OK]
docker.io   docker.io/arm64v8/rabbitmq                            RabbitMQ is an open source multi-protocol ...   8                    
docker.io   docker.io/arm32v7/rabbitmq                            RabbitMQ is an open source multi-protocol ...   7                    
docker.io   docker.io/gonkulatorlabs/rabbitmq                     DEPRECATED: See maryville/rabbitmq              5                    [OK]
docker.io   docker.io/heidiks/rabbitmq-delayed-message-exchange   RabbitMQ with the compatible version of th...   4                    [OK]
docker.io   docker.io/pivotalrabbitmq/rabbitmq-server-buildenv    Image used to build and test RabbitMQ serv...   4                    
docker.io   docker.io/pivotalrabbitmq/rabbitmq-autocluster        RabbitMQ with the rabbitmq-autocluster plu...   3                    
docker.io   docker.io/deadtrickster/rabbitmq_prometheus           RabbitMQ + Prometheus RabbitMQ Exporter pl...   2                    
docker.io   docker.io/henrylv206/rabbitmq-autocluster             RabbitMQ Cluster                                2                    [OK]
docker.io   docker.io/riftbit/rabbitmq                            RabbitMQ 3.x Container based on Alpine Lin...   2                    
docker.io   docker.io/activatedgeek/rabbitmqadmin                 A rabbitmqadmin docker image for administr...   1                    [OK]
docker.io   docker.io/amd64/rabbitmq                              RabbitMQ is an open source multi-protocol ...   1                    
docker.io   docker.io/ekesken/rabbitmq                            docker image for rabbitmq that is configur...   1                    [OK]
docker.io   docker.io/foxylion/rabbitmq                           Preconfigured RabbitMQ docker image with s...   1                    [OK]
docker.io   docker.io/i386/rabbitmq                               RabbitMQ is an open source multi-protocol ...   1                    
docker.io   docker.io/rabbitmqoperator/cluster-operator           The RabbitMQ Cluster Operator Docker Image      1                    
docker.io   docker.io/webhostingcoopteam/rabbitmq-conf            RabbitMQ Configurator for Rancher               1                    [OK]
docker.io   docker.io/dubc/rabbitmq-alpine-all-plugins            Additions are that the following plugins a...   0                    [OK]
docker.io   docker.io/pdffiller/rabbitmq                          Rabbitmq 3.7.3 with delayed_message plugin...   0                    
docker.io   docker.io/ppc64le/rabbitmq                            RabbitMQ is an open source multi-protocol ...   0                    
docker.io   docker.io/s390x/rabbitmq                              RabbitMQ is an open source multi-protocol ...   0                    
[root@localhost ~]# 

2. 下载镜像

[root@localhost ~]# docker pull rabbitmq:management
Trying to pull repository docker.io/library/rabbitmq ... 
management: Pulling from docker.io/library/rabbitmq
16ec32c2132b: Pull complete 
3adbc39b91c4: Pull complete 
d9bdef24433b: Pull complete 
c30ffcfc7791: Pull complete 
d09f1c15f6ed: Pull complete 
0e6412cde6ab: Pull complete 
72a3c57a2525: Pull complete 
f105f85edcfc: Pull complete 
5408f9208bcd: Pull complete 
39e0b328d922: Pull complete 
Digest: sha256:87cad55fdc727f68bb158c3cd64f27c7ded996f19f988fef4c7f5734c6cb2af3
Status: Downloaded newer image for docker.io/rabbitmq:management
[root@localhost ~]# docker images
REPOSITORY           TAG                 IMAGE ID            CREATED             SIZE
docker.io/rabbitmq   management          80070f1f0c8f        2 days ago          253 MB

3. 创建容器并运行

[root@localhost ~]# docker ps
CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS               NAMES
[root@localhost ~]# docker run > -dit > --name Myrabbitmq > -e RABBITMQ_DEFAULT_USER=admin > -e RABBITMQ_DEFAULT_PASS=admin > -p 15672:15672 > -p 5672:5672 > rabbitmq:management
bc11ca60846bae3752fcb9173f03447432bebe122c6bac1a7aeba6b9bd80cd1c
[root@localhost ~]# docker ps
CONTAINER ID        IMAGE                 COMMAND                  CREATED             STATUS              PORTS                                                                                                         NAMES
bc11ca60846b        rabbitmq:management   "docker-entrypoint..."   52 seconds ago      Up 51 seconds       4369/tcp, 5671/tcp, 0.0.0.0:5672->5672/tcp, 15671/tcp, 15691-15692/tcp, 25672/tcp, 0.0.0.0:15672->15672/tcp   Myrabbitmq
[root@localhost ~]# 

4. 登录

docker安装rabbitmq

 

docker安装rabbitmq

上一篇:Django 解决 no such table: django_session 问题


下一篇:NIO与零拷贝