rabbitmq

ubuntu/rabbitmq Docker Image

基于Ubuntu的RabbitMQ镜像 - 一个开源的多协议消息代理。

下载次数: 0状态:社区镜像维护者:Ubuntu 官方镜像仓库类型:镜像最近更新:
下载命令
点击查看

ubuntu/rabbitmq is a rock for rabbitmq maintained by https://canonical.com/.

RabbitMQ is a reliable and mature messaging and streaming broker, which is easy to deploy on cloud environments, on-premises, and on your local machine. It is currently used by millions worldwide.

\https://www.rabbitmq.com/\]

Tags and Architectures

NOTE: These tags follow a specific naming convention that respects the concept of channels.

TagsSupported untilVersionBaseArchitectures
4.0-26.04_stable
aliases4.0-26.04, 4.0-26.04_beta, 4.0-26.04_candidate
05/20314.026.04arm64, amd64
3.12-24.04_stable
aliases3-24.04, 3-24.04_beta, 3-24.04_candidate, 3-24.04_stable, 3.12-24.04, 3.12-24.04_beta, 3.12-24.04_candidate
05/20293.1224.04amd64, arm64
3.9-22.04_stable
aliases3-22.04, 3-22.04_beta, 3-22.04_candidate, 3-22.04_stable, 3.9-22.04, 3.9-22.04_beta, 3.9-22.04_candidate
06/20273.922.04amd64, arm64
4.0-26.04_edge
aliases4.0-26.04_edge
05/20314.026.04arm64, s390x, ppc64le, amd64
3.12-24.04_edge
aliases3-24.04_edge
05/20293.1224.04amd64, s390x, arm64, ppc64le
3.9-22.04_edge
aliases3-22.04_edge
06/20273.922.04ppc64le, amd64, arm64, s390x

Get started

This rock's entrypoint is Pebble, a container-optimized init process that enables the orchestration of a collection of local service processes as an organized set.

\https://documentation.ubuntu.com/pebble/\]

Inspect

To view the https://documentation.ubuntu.com/rockcraft/en/latest/reference/rockcraft-yaml/#services and https://documentation.ubuntu.com/rockcraft/latest/reference/rockcraft-yaml/#checks defined in this rock:

sh
docker run --rm ubuntu/rabbitmq:4.0-26.04_stable plan

Run

To run this rock, use any of the usual container runtimes, for example, docker:

sh
docker run --name rabbitmq-container \
    -p 5672:5672 -p 15672:15672 \
    ubuntu/rabbitmq:4.0-26.04_stable

RabbitMQ starts and exposes AMQP and HTTP management interfaces. Access AMQP on localhost:5672 and HTTP management UI on http://localhost:15672.

Note that the clients provided by RabbitMQ won't be accessible by default unless a properly defined configuration file is applied in the container. For demonstration purposes, we enable access for the default guest user from a non-localhost network by running the following commands:

shell
$ docker exec rabbitmq-container /scripts/config-defaults.sh
$ docker exec rabbitmq-container pebble restart rabbitmq-server

CAUTION: This container is no longer production-ready if configured with /scripts/config-defaults.sh. Refer to the https://www.rabbitmq.com/docs/configure for production deployments.

The node status can be queried with the following command:

shell
$ curl -u guest:guest http://localhost:15672/api/healthchecks/node

Get logs

To view the logs of the running container, run:

sh
docker exec rabbitmq-container pebble logs

Or, for a specific service:

sh
docker exec rabbitmq-container pebble logs <service>

Monitor health checks

Rocks may have predefined health checks that you can list by running:

sh
docker exec rabbitmq-container pebble checks

The overall health of your container can be inspected via:

sh
docker exec rabbitmq-container pebble health

Configuration

Environment variables

OptionDescriptionDefault
RABBITMQ_CONFIG_FILEMain RabbitMQ config file path. Defaults to /etc/rabbitmq/rabbitmq.conf by RabbitMQ.None
RABBITMQ_CONFIG_FILESPath to a directory of RabbitMQ configuration files. Defaults to /etc/rabbitmq/conf.d by RabbitMQ.None

Volumes

OptionDescriptionDefault
-v <path>:/etc/rabbitmq/rabbitmq.confMap the local https://www.rabbitmq.com/docs/configure#config-file into the container. Change the target path if any other configuration file path is passed to the environmental variable RABBITMQ_CONFIG_FILE.None
-v <path>:/etc/rabbitmq/conf.dMap the local https://www.rabbitmq.com/docs/configure#config-confd-directory into the container. Change the target path if any other configure directory is passed to the environmental variable RABBITMQ_CONFIG_FILES.None

Ports

OptionDescriptionDefault
-p <port>:5672Expose the container's port 5672 on the host's for AMQP clients without TLS.None
-p <port>:5671Expose the container's port 5671 on the host's for AMQP clients with TLS.None
-p <port>:15672Expose the container's port *** on the host's for HTTP clients without TLS.None
-p <port>:15671Expose the container's port *** on the host's for HTTP clients with TLS.None

\https://github.com/canonical/rabbitmq-rock/issues\] \https://github.com/canonical/rabbitmq-rock\]

Canonical is the provider of this container image. It is the user's responsibility to ensure that any use of this image complies with any relevant licenses for all software contained within, as well as with https://canonical.com/legal/intellectual-property-policy.

镜像拉取方式

您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。

轩辕镜像加速拉取命令点我查看更多 rabbitmq 镜像标签

docker pull docker.xuanyuan.run/ubuntu/rabbitmq:<标签>

DockerHub 原生拉取命令

docker pull ubuntu/rabbitmq:<标签>
专业版 · 高速稳定拉取镜像
50GB 仅 ¥8/年
高速镜像下载在线技术支持专业版保障服务可用付费会员免广告