frodenas/rabbitmqA Dockerfile that produces a Docker Image for RabbitMQ.
The master branch currently hosts RabbitMQ 3.3.
Different versions of RabbitMQ are located at the github repo branches.
To create the image frodenas/rabbitmq, execute the following command on the docker-rabbitmq folder:
$ docker build -t frodenas/rabbitmq .
To run the image and bind to host port 5672:
$ docker run -d --name rabbitmq -p 5672:5672 frodenas/rabbitmq
If you want also to expose the RabbitMQ Management interface, you will need also to expose port ***:
$ docker run -d --name rabbitmq -p 5672:5672 -p ***:*** frodenas/rabbitmq
The first time you run your container, a new user rabbitmq with all privileges will be created with a random password.
To get the password, check the logs of the container by running:
docker logs <CONTAINER_ID>
You will see an output like the following:
======================================================================== RabbitMQ User: "rabbitmq" RabbitMQ Password: "8psfzXmp6t23rKr6" ========================================================================
If you want to preset credentials instead of a random generated ones, you can set the following environment variables:
RABBITMQ_USERNAME to set a specific usernameRABBITMQ_PASSWORD to set a specific passwordOn this example we will preset our custom username and password:
$ docker run -d \ --name rabbitmq \ -p 5672:5672 \ -e RABBITMQ_USERNAME=myusername \ -e RABBITMQ_PASSWORD=mypassword \ frodenas/rabbitmq
Copyright (c) 2014 Ferran Rodenas. See LICENSE for details.


manifest unknown 错误
TLS 证书验证失败
DNS 解析超时
410 错误:版本过低
402 错误:流量耗尽
身份认证失败错误
429 限流错误
凭证保存错误
来自真实用户的反馈,见证轩辕镜像的优质服务