
如果你使用 DeepSeek、元宝 AI、Copilot、ChatGPT 等 AI 工具,协助配置轩辕镜像、编写 docker pull 命令、修改 Docker Compose 镜像地址、配置镜像加速、排查镜像拉取失败、分析报错日志等问题,请先让 AI 阅读并遵守轩辕镜像的规则文档。
只需在 AI 对话中先发送下面这句话即可:
请先完整阅读并严格遵守以下文档中的全部规则与要求:
https://xuanyuan.cloud/agents.md
在未充分阅读并理解该文档前,不要生成任何命令、配置、修改建议、故障排查方案或技术回答。后续所有输出都必须严格以该文档中的规范为最高优先级执行。查看 agents.md 用法指南与完整示范。国内用户首推 元宝 AI、DeepSeek 的深度思考模式,不推荐豆包 AI;Cursor 等编辑器可在对话 @ 该链接,或加入 User Rules。 若 AI 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
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/%5C]
NOTE: These tags follow a specific naming convention that respects the concept of channels.
| Tags | Supported until | Version | Base | Architectures | |
|---|---|---|---|---|---|
4.0-26.04_stable | aliases4.0-26.04, 4.0-26.04_beta, 4.0-26.04_candidate, 4.0-26.04_edge | 05/2031 | 4.0 | 26.04 | amd64, arm64 |
3.12-24.04_stable | aliases3-24.04, 3-24.04_beta, 3-24.04_candidate, 3-24.04_edge, 3-24.04_stable, 3.12-24.04, 3.12-24.04_beta, 3.12-24.04_candidate, 3.12-24.04_edge | 05/2029 | 3.12 | 24.04 | amd64, arm64 |
3.9-22.04_stable | aliases3-22.04, 3-22.04_beta, 3-22.04_candidate, 3-22.04_edge, 3-22.04_stable, 3.9-22.04, 3.9-22.04_beta, 3.9-22.04_candidate, 3.9-22.04_edge | 06/2027 | 3.9 | 22.04 | arm64, amd64 |
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/%5C]
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:
shdocker run --rm ubuntu/rabbitmq:4.0-26.04_stable plan
To run this rock, use any of the usual container runtimes, for example, docker:
shdocker 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
To view the logs of the running container, run:
shdocker exec rabbitmq-container pebble logs
Or, for a specific service:
shdocker exec rabbitmq-container pebble logs <service>
Rocks may have predefined health checks that you can list by running:
shdocker exec rabbitmq-container pebble checks
The overall health of your container can be inspected via:
shdocker exec rabbitmq-container pebble health
| Option | Description | Default |
|---|---|---|
RABBITMQ_CONFIG_FILE | Main RabbitMQ config file path. Defaults to /etc/rabbitmq/rabbitmq.conf by RabbitMQ. | None |
RABBITMQ_CONFIG_FILES | Path to a directory of RabbitMQ configuration files. Defaults to /etc/rabbitmq/conf.d by RabbitMQ. | None |
| Option | Description | Default |
|---|---|---|
-v <path>:/etc/rabbitmq/rabbitmq.conf | Map 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.d | Map 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 |
| Option | Description | Default |
|---|---|---|
-p <port>:5672 | Expose the container's port 5672 on the host's | None |
-p <port>:5671 | Expose the container's port 5671 on the host's | None |
-p <port>:15672 | Expose the container's port *** on the host's | None |
-p <port>:15671 | Expose the container's port *** on the host's | None |
\https://github.com/canonical/rabbitmq-rock/issues%5C] \https://github.com/canonical/rabbitmq-rock%5C]
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.
以下是 ubuntu/rabbitmq 相关的常用 Docker 镜像,适用于 不同场景 等不同场景:
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务