Score:0

rabbitmq nodes are not joining to cluster on docker, how to fix that?

uz flag

I followed the steps provided in this link.

I ran below commands on my ubuntu machine docker installed.

lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 20.04.3 LTS
Release:        20.04
Codename:       focal

To setup cluster:

docker run -d --name="rabbit1" --hostname="rabbit1" -e RABBITMQ_ERLANG_COOKIE="secret string" -e RABBITMQ_NODENAME="rabbit1" --volume=/home/userone/rabbitmq.config:/etc/rabbitmq/rabbitmq.config --volume=/home/userone/definitions.json:/etc/rabbitmq/definitions.json --publish="4369:4369" --publish="5671:5671" --publish="5672:5672" --publish="15671:15671" --publish="15672:15672" --publish="25672:25672" rabbitmq:3-management


docker run -d --name="rabbit2" --hostname="rabbit2" -e RABBITMQ_ERLANG_COOKIE="secret string" -e RABBITMQ_NODENAME="rabbit2" --volume=/home/userone/rabbitmq.config:/etc/rabbitmq/rabbitmq.config --volume=/home/userone/definitions.json:/etc/rabbitmq/definitions.json --link="rabbit1:rabbit1" rabbitmq:3-management


docker run -d --name="rabbit3" --hostname="rabbit3" -e RABBITMQ_ERLANG_COOKIE="secret string" -e RABBITMQ_NODENAME="rabbit3" --volume=/home/userone/rabbitmq.config:/etc/rabbitmq/rabbitmq.config --volume=/home/userone/definitions.json:/etc/rabbitmq/definitions.json --link="rabbit1:rabbit1" --link="rabbit2:rabbit2" rabbitmq:3-management

But it is showing single node in the rabbitmq page.

rabbitmq page

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.