基于Ubuntu的RabbitMQ镜像 - 一个开源的多协议消息代理。
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.
| 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 | 05/2031 | 4.0 | 26.04 | arm64, 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/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_stable, 3.9-22.04, 3.9-22.04_beta, 3.9-22.04_candidate | 06/2027 | 3.9 | 22.04 | amd64, arm64 |
4.0-26.04_edge | aliases4.0-26.04_edge | 05/2031 | 4.0 | 26.04 | arm64, s390x, ppc64le, amd64 |
3.12-24.04_edge | aliases3-24.04_edge | 05/2029 | 3.12 | 24.04 | amd64, s390x, arm64, ppc64le |
3.9-22.04_edge | aliases3-22.04_edge | 06/2027 | 3.9 | 22.04 | ppc64le, 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:
shdocker 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:
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
Get logs
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>
Monitor health checks
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
Configuration
Environment variables
| 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 |
Volumes
| 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 |
Ports
| 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\] \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.
ubuntu 命名空间的其他可用镜像:
镜像拉取方式
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
DockerHub 原生拉取命令
用户好评
来自真实用户的反馈,见证轩辕镜像的优质服务